error in the date checking fixed.
This commit is contained in:
parent
111a7cb832
commit
92f1f4e214
@ -1 +1 @@
|
||||
2023-09-24 23:13:25.574548
|
||||
2023-09-25 10:27:51.334089
|
||||
|
2
main.py
2
main.py
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user