Disable timetable functions for migration to timetable-mgr

This commit is contained in:
Fred Boniface 2024-04-27 21:37:43 +01:00
parent 0bf8f8add9
commit 546cf02e15

View File

@ -39,7 +39,8 @@ while dbReady is False:
dbReady = False
## Run CORPUS Update
status = corpus.runUpdate()
## Disabled for migration to timetable-mgr
#status = corpus.runUpdate()
## Run PIS Update
pis.runUpdate()
@ -48,7 +49,8 @@ pis.runUpdate()
reasonCodes.runUpdate()
## Run Timetable Update
timetable.runUpdate()
## Disabled for migration to timetable-mgr
#timetable.runUpdate()
## Create general indexes
log.out('main.py: Requesting TTL Index Creation', "INFO")
@ -64,7 +66,7 @@ except Exception as e:
mongo.dropCollection("registrations")
mongo.createTtlIndex("registrations", "time", registrations_ttl_seconds)
log.out(f"Indexes for 'registrations': {list(mongo.listIndexes('registrations'))}")
#log.out(f"Indexes for 'registrations': {list(mongo.listIndexes('registrations'))}")
# Push version number to database for reporting
mongo.putVersion(version)