Change PIS update time

This commit is contained in:
Fred Boniface 2023-04-27 13:07:42 +01:00
parent c091eae1d5
commit 10e616c29d
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ else:
# If older than 12 days then update # If older than 12 days then update
pisAge = int(time.time()) - mongo.metaCheckTime("pis") pisAge = int(time.time()) - mongo.metaCheckTime("pis")
log.out(f'main.py: PIS Data is {pisAge}s old', "INFO") log.out(f'main.py: PIS Data is {pisAge}s old', "INFO")
if pisAge > 43200: # Temporarily set to one day if pisAge > 3600: # Temporarily set to four hours
log.out('main.py: Updating PIS data', "INFO") log.out('main.py: Updating PIS data', "INFO")
pisData = pis.load() pisData = pis.load()
mongo.putBulkPis(pisData) mongo.putBulkPis(pisData)