Skip to content

Commit

Permalink
FIxed if conditional in HathiDateFormat method
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed May 18, 2022
1 parent 04f2a64 commit 330b72f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion processes/hathiTrust.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 330b72f

Please sign in to comment.