Update version collection types
This commit is contained in:
parent
07eccad84f
commit
c0b81e2d76
@ -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
|
||||||
|
@ -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):
|
||||||
|
Reference in New Issue
Block a user