pis-entry #1

Merged
fred.boniface merged 23 commits from pis-entry into dev 2023-05-06 21:51:54 +01:00
Showing only changes of commit 10e616c29d - Show all commits

View File

@ -57,7 +57,7 @@ else:
# If older than 12 days then update
pisAge = int(time.time()) - mongo.metaCheckTime("pis")
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")
pisData = pis.load()
mongo.putBulkPis(pisData)