Adjust registration expiration time to 4 hours

This commit is contained in:
Fred Boniface 2024-02-19 11:10:00 +00:00
parent c0b81e2d76
commit 51413e89e2

View File

@ -14,7 +14,7 @@
# program. If not, see
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
version = "2023.7.6"
version = "2024.2.1"
print(f"main.py: Initialising db-manager v{version}")
#Third Party Imports
@ -53,7 +53,7 @@ timetable.runUpdate()
## Create general indexes
log.out('main.py: Requesting TTL Index Creation', "INFO")
mongo.createTtlIndex("users", "atime", 2629800)
mongo.createTtlIndex("registrations", "time", 1800)
mongo.createTtlIndex("registrations", "time", 14400)
# Push version number to database for reporting
mongo.putVersion(version)