aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/db.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-01-15 13:54:29 -0800
committerBryan Newbold <bnewbold@archive.org>2020-01-15 13:54:29 -0800
commit0c4b686cf6c536087683d7982558bec3c5696c7f (patch)
treeb689d465c8afb46dde94dc91b2c71fd5347e6ecf /python/sandcrawler/db.py
parentd06fd45e3c86cb080ad7724f3fc7575750a9cd69 (diff)
downloadsandcrawler-0c4b686cf6c536087683d7982558bec3c5696c7f.tar.gz
sandcrawler-0c4b686cf6c536087683d7982558bec3c5696c7f.zip
persist worker: implement updated ingest result semantics
Diffstat (limited to 'python/sandcrawler/db.py')
-rw-r--r--python/sandcrawler/db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/sandcrawler/db.py b/python/sandcrawler/db.py
index 1a47b0b..a2407b5 100644
--- a/python/sandcrawler/db.py
+++ b/python/sandcrawler/db.py
@@ -156,7 +156,7 @@ class SandcrawlerPostgresClient:
d.get('grobid_version') or None,
d['status_code'],
d['status'],
- d.get('fatcat_release') or None,
+ d.get('fatcat_release') or d.get('metadata', {}).get('fatcat_release') or None,
d.get('updated') or datetime.datetime.now(),
d.get('metadata') or None ,
)