diff --git a/src/main.py b/src/main.py index 1487a89..5afec42 100644 --- a/src/main.py +++ b/src/main.py @@ -14,7 +14,7 @@ # program. If not, see # 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}") #Third Party Imports diff --git a/src/mongo.py b/src/mongo.py index 6ebb314..22ccfb2 100644 --- a/src/mongo.py +++ b/src/mongo.py @@ -82,9 +82,9 @@ def metaCounters(): return def putVersion(version): - collection = "meta" + collection = "versions" 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 def putTimetable(data):