diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-13 17:43:27 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-12-13 18:07:53 -0800 |
commit | 9c1fd7cb8e60c397fa6defef2f0dc1eacc8d8aa7 (patch) | |
tree | c6d3f80610af009ebba799951bfe3a5c56e72694 /python/fatcat_tools/workers | |
parent | 4b2fc499ac77f4b929943b54a4c28b78659468e8 (diff) | |
download | fatcat-9c1fd7cb8e60c397fa6defef2f0dc1eacc8d8aa7.tar.gz fatcat-9c1fd7cb8e60c397fa6defef2f0dc1eacc8d8aa7.zip |
update ingest request schema
This is mostly changing ingest_type from 'file' to 'pdf', and adding
'link_source'/'link_source_id', plus some small cleanups.
Diffstat (limited to 'python/fatcat_tools/workers')
-rw-r--r-- | python/fatcat_tools/workers/changelog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/workers/changelog.py b/python/fatcat_tools/workers/changelog.py index e1a72217..863ad40a 100644 --- a/python/fatcat_tools/workers/changelog.py +++ b/python/fatcat_tools/workers/changelog.py @@ -223,7 +223,7 @@ class EntityUpdatesWorker(FatcatWorker): # filter to "new" active releases with no matched files if release.ident in new_release_ids: ir = release_ingest_request(release, ingest_request_source='fatcat-changelog', oa_only=self.ingest_oa_only) - if ir and ir['ingest_type'] == 'file' and not release.files: + if ir and not release.files: producer.produce( self.ingest_file_request_topic, json.dumps(ir).encode('utf-8'), |