summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-05-28 00:36:35 +0000
committerMartin Czygan <martin@archive.org>2020-05-28 00:36:35 +0000
commit92bdf2bd5d99ce6eb76ea1dcec27e21c6f362651 (patch)
tree5b48a6132a469bc430dc51ee0e57aa2f6f241861 /python/fatcat_tools
parent174cf39a02b85c69ada9bea609be2fc06c172e68 (diff)
parent9bbc8f4ceec54563d71c68564b35ceb14ac60840 (diff)
downloadfatcat-92bdf2bd5d99ce6eb76ea1dcec27e21c6f362651.tar.gz
fatcat-92bdf2bd5d99ce6eb76ea1dcec27e21c6f362651.zip
Merge branch 'bnewbold-ingest-stage' into 'master'
verify release_stage in ingest importer See merge request webgroup/fatcat!52
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/importers/ingest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py
index 6cf1604b..2b630e67 100644
--- a/python/fatcat_tools/importers/ingest.py
+++ b/python/fatcat_tools/importers/ingest.py
@@ -109,6 +109,11 @@ class IngestFileResultImporter(EntityImporter):
self.counts['warn-extid-invalid'] += 1
continue
raise err
+ # verify release_stage
+ if request.get('release_stage') and release.release_stage:
+ if request['release_stage'] != release.release_stage:
+ self.counts['skip-release-stage'] += 1
+ return None
release_ident = release.ident
break
if self.use_glutton_match and not release_ident and row.get('grobid'):