fixed string when no last_check file is found

This commit is contained in:
Camille Frantz 2024-11-22 12:35:52 -06:00
parent 7e37736438
commit 40cacc2020
Signed by: fyrfli
SSH Key Fingerprint: SHA256:cyNGncrLxKXAgYC96dYNROnQKikLInzrpiMraZdqyhY

View File

@ -16,7 +16,7 @@ old_ts = ''
try:
old_ts = dt.strptime(open('last_check','r').read().split(".")[0],'%Y-%m-%d %H:%M:%S')
except:
old_ts = dt.strptime('20230101000000','%Y-%m-%d %H:%M:%S')
old_ts = dt.strptime('2023-01-01 00:00:00','%Y-%m-%d %H:%M:%S')
# load in the relevant .env variables
load_dotenv()