diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-15 16:49:21 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-11-15 16:51:55 -0800 |
commit | 4693394d69667570a81126ea727e9ad0ed8e1582 (patch) | |
tree | 9bd99a425bfc0b8cbc19617d045f26afac18402f /python/fatcat_tools/transforms/ingest.py | |
parent | 24010700fcf9717d2166cdef319d4916d87529fb (diff) | |
download | fatcat-4693394d69667570a81126ea727e9ad0ed8e1582.tar.gz fatcat-4693394d69667570a81126ea727e9ad0ed8e1582.zip |
project -> ingest_request_source
Diffstat (limited to 'python/fatcat_tools/transforms/ingest.py')
-rw-r--r-- | python/fatcat_tools/transforms/ingest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/transforms/ingest.py b/python/fatcat_tools/transforms/ingest.py index 83cc83be..c2ae6e0f 100644 --- a/python/fatcat_tools/transforms/ingest.py +++ b/python/fatcat_tools/transforms/ingest.py @@ -1,7 +1,7 @@ from .elasticsearch import release_to_elasticsearch -def release_ingest_request(release, oa_only=False, project='fatcat'): +def release_ingest_request(release, oa_only=False, ingest_request_source='fatcat'): """ Takes a full release entity object and returns an ingest request (as dict), or None if it seems like this release shouldn't be ingested. @@ -52,7 +52,7 @@ def release_ingest_request(release, oa_only=False, project='fatcat'): ingest_request = { 'ingest_type': 'file', - 'project': project, + 'ingest_request_source': ingest_request_source, 'base_url': url, 'fatcat': { 'release_stage': release.release_stage, |