diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-01-15 13:54:29 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-01-15 13:54:29 -0800 |
commit | 0c4b686cf6c536087683d7982558bec3c5696c7f (patch) | |
tree | b689d465c8afb46dde94dc91b2c71fd5347e6ecf /python/sandcrawler/db.py | |
parent | d06fd45e3c86cb080ad7724f3fc7575750a9cd69 (diff) | |
download | sandcrawler-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.py | 2 |
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 , ) |