This commit is contained in:
Fred Boniface
2023-05-08 20:40:31 +01:00
parent 326b9a4f7a
commit 16ba0e20a0
2 changed files with 132 additions and 8 deletions

View File

@@ -14,7 +14,7 @@
# program. If not, see
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
version = "2.1.2"
version = "2.1.3"
print(f"main.py: Initialising db-manager v{version}")
#Third Party Imports
@@ -63,7 +63,7 @@ else:
# 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 > 172800: # Temporarily set to 15 minutes
if pisAge > 43200: # Temporarily set to 15 minutes
log.out('main.py: Updating PIS data', "INFO")
pisData = pis.load()
pisParsed = pis.parse(pisData)