Move collection for versions
This commit is contained in:
parent
0a82f71168
commit
e2ecc4a9fe
@ -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
|
||||
|
@ -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
|
Reference in New Issue
Block a user