From 330b72f907e96d82955aee9b81258e7210988e86 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 18 May 2022 15:37:36 -0400 Subject: [PATCH] FIxed if conditional in HathiDateFormat method --- CHANGELOG.md | 2 +- processes/hathiTrust.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e544f5ca6d..fac08b62d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ ### Fixed - ES8 API only counting up to 10,000 search results - Add bulk retry functionality for ES writes/deletes -- Edition column for most editions now filled +- Edition field for some editions now filled - HathiTrust data import with new date formats ## 2022-04-26 -- v0.10.2 diff --git a/processes/hathiTrust.py b/processes/hathiTrust.py index 569752e152..840212028c 100644 --- a/processes/hathiTrust.py +++ b/processes/hathiTrust.py @@ -78,7 +78,7 @@ def importFromHathiTrustDataFile(self, fullDump=False): @staticmethod def returnHathiDateFormat(strDate): - if 'T' and '-' in strDate: + if 'T' in strDate and '-' in strDate: return '%Y-%m-%dT%H:%M:%S%z' elif 'T' in strDate: return '%Y-%m-%dT%H:%M:%S'