Update version collection types

This commit is contained in:
Fred Boniface 2023-07-28 21:21:57 +01:00
parent 07eccad84f
commit c0b81e2d76
2 changed files with 3 additions and 3 deletions

View File

@ -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 = "2023.7.5" version = "2023.7.6"
print(f"main.py: Initialising db-manager v{version}") print(f"main.py: Initialising db-manager v{version}")
#Third Party Imports #Third Party Imports

View File

@ -82,9 +82,9 @@ def metaCounters():
return return
def putVersion(version): def putVersion(version):
collection = "meta" collection = "versions"
col = db[collection] col = db[collection]
res = col.update_one({"target": "versions"}, {"$set":{"target": "versions","dbmanager": version}}, upsert=True) res = col.update_one({"target": "dbmanager"}, {"$set":{"target": "dbmanager", "component":"dbmanager","version": version}}, upsert=True)
return return
def putTimetable(data): def putTimetable(data):