summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
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'):