aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-05-21 12:15:07 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-05-21 12:15:07 -0700
commite792aa8f2a401b83bda608eeae8b347e5be845ea (patch)
treeb048d77a13ee0b83966260c38e921c4ce3b49d1e
parentb5e66c5cd7e30840073576b9a86054e0745b9d18 (diff)
downloadfatcat-e792aa8f2a401b83bda608eeae8b347e5be845ea.tar.gz
fatcat-e792aa8f2a401b83bda608eeae8b347e5be845ea.zip
arabesque importer: ensure full 14-digit timestamps
-rw-r--r--python/fatcat_tools/importers/arabesque.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/arabesque.py b/python/fatcat_tools/importers/arabesque.py
index 47a8c4da..79fb10d3 100644
--- a/python/fatcat_tools/importers/arabesque.py
+++ b/python/fatcat_tools/importers/arabesque.py
@@ -64,7 +64,9 @@ class ArabesqueMatchImporter(EntityImporter):
return False
if (row['hit'] == True
and row['final_sha1']
- and row['final_timestamp'] and row['final_timestamp'] != "-"
+ and row['final_timestamp']
+ and row['final_timestamp'] != "-"
+ and len(row['final_timestamp']) == 14
and row['final_mimetype']
and row['hit'] == True
and row['identifier']):