Move collection for versions

This commit is contained in:
Fred Boniface 2023-03-13 20:10:20 +00:00
parent 0a82f71168
commit e2ecc4a9fe
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
# program. If not, see
# https://git.fjla.uk/OwlBoard/db-manager/src/branch/main/LICENSE
version = "1.1.0"
version = "1.1.1"
print(f"main.py: Initialising db-manager v{version}")
#Third Party Imports

View File

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