From 10e616c29df16460abc0ac6eaf31a260e3538afc Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 27 Apr 2023 13:07:42 +0100 Subject: [PATCH] Change PIS update time --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 3ab992a..4a40015 100644 --- a/src/main.py +++ b/src/main.py @@ -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)