error in the date checking fixed.

This commit is contained in:
Camille Frantz 2023-09-25 10:28:19 -05:00
parent 111a7cb832
commit 92f1f4e214
Signed by: fyrfli
SSH Key Fingerprint: SHA256:cyNGncrLxKXAgYC96dYNROnQKikLInzrpiMraZdqyhY
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
2023-09-24 23:13:25.574548
2023-09-25 10:27:51.334089

View File

@ -10,7 +10,7 @@ old_ts = ''
# read in old timestamp if it exists
try:
old_ts = dt.strptime(open('last_check','r').read(),'%Y-%m-%d %H:%M:%S:%f')
old_ts = dt.strptime(open('last_check','r').read().rstrip(),'%Y-%m-%d %H:%M:%S.%f')
except:
old_ts = dt.strptime('20230101000000','%Y%m%d%H%M%S')