From 86d439e70ab5d0fa55d1ea1ecd7e4ee34fc09a59 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sat, 6 May 2023 21:31:52 +0100 Subject: [PATCH] Adjust PIS update time --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index c70d0ec..f153d22 100644 --- a/src/main.py +++ b/src/main.py @@ -60,10 +60,10 @@ else: log.out('main.py: Not updating stations data until it is 1036800s old.', "INFO") #Check & Update pis data: - # If older than 12 days then update + # If older than 2 days then update pisAge = int(time.time()) - mongo.metaCheckTime("pis") log.out(f'main.py: PIS Data is {pisAge}s old', "INFO") -if pisAge > 900: # Temporarily set to 15 minutes +if pisAge > 172800: # Temporarily set to 15 minutes log.out('main.py: Updating PIS data', "INFO") pisData = pis.load() pisParsed = pis.parse(pisData)