Compare commits
2 Commits
0bf8f8add9
...
dbcd6b3d0f
Author | SHA1 | Date |
---|---|---|
Fred Boniface | dbcd6b3d0f | |
Fred Boniface | 546cf02e15 |
10
src/main.py
10
src/main.py
|
@ -14,7 +14,7 @@
|
||||||
# program. If not, see
|
# program. If not, see
|
||||||
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
|
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
|
||||||
|
|
||||||
version = "2024.3.0"
|
version = "2024.04.1"
|
||||||
print(f"main.py: Initialising db-manager v{version}")
|
print(f"main.py: Initialising db-manager v{version}")
|
||||||
|
|
||||||
#Third Party Imports
|
#Third Party Imports
|
||||||
|
@ -39,7 +39,8 @@ while dbReady is False:
|
||||||
dbReady = False
|
dbReady = False
|
||||||
|
|
||||||
## Run CORPUS Update
|
## Run CORPUS Update
|
||||||
status = corpus.runUpdate()
|
## Disabled for migration to timetable-mgr
|
||||||
|
#status = corpus.runUpdate()
|
||||||
|
|
||||||
## Run PIS Update
|
## Run PIS Update
|
||||||
pis.runUpdate()
|
pis.runUpdate()
|
||||||
|
@ -48,7 +49,8 @@ pis.runUpdate()
|
||||||
reasonCodes.runUpdate()
|
reasonCodes.runUpdate()
|
||||||
|
|
||||||
## Run Timetable Update
|
## Run Timetable Update
|
||||||
timetable.runUpdate()
|
## Disabled for migration to timetable-mgr
|
||||||
|
#timetable.runUpdate()
|
||||||
|
|
||||||
## Create general indexes
|
## Create general indexes
|
||||||
log.out('main.py: Requesting TTL Index Creation', "INFO")
|
log.out('main.py: Requesting TTL Index Creation', "INFO")
|
||||||
|
@ -64,7 +66,7 @@ except Exception as e:
|
||||||
mongo.dropCollection("registrations")
|
mongo.dropCollection("registrations")
|
||||||
mongo.createTtlIndex("registrations", "time", registrations_ttl_seconds)
|
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
|
# Push version number to database for reporting
|
||||||
mongo.putVersion(version)
|
mongo.putVersion(version)
|
||||||
|
|
Loading…
Reference in New Issue