From c0b81e2d767b5cb9e65958217f053a793a92c0b5 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Fri, 28 Jul 2023 21:21:57 +0100 Subject: [PATCH] Update version collection types --- src/main.py | 2 +- src/mongo.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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):