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'