Add PIS
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user