Change PIS update time
This commit is contained in:
parent
c091eae1d5
commit
10e616c29d
@ -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)
|
||||||
|
Reference in New Issue
Block a user