pis-entry #1
@ -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)
|
||||
|
Reference in New Issue
Block a user