mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
Change find_one to find, for iso output
This commit is contained in:
parent
34a1cc9699
commit
ef85e04c3d
1 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ class MongoDB:
|
|||
result = {
|
||||
"result": "OK",
|
||||
"value": json.loads(
|
||||
dumps(self.db[self.collection_clusters].find_one(
|
||||
dumps(self.db[self.collection_clusters].find(
|
||||
{'$and': [{'date': int(date), 'cluster': cluster}]})))
|
||||
}
|
||||
|
||||
|
@ -272,7 +272,7 @@ class MongoDB:
|
|||
result = {
|
||||
"result": "OK",
|
||||
"value": json.loads(
|
||||
dumps(self.db[self.collection_nodes].find_one(
|
||||
dumps(self.db[self.collection_nodes].find(
|
||||
{'$and': [{'date': int(date), 'cluster': cluster, 'node': node}]})))
|
||||
}
|
||||
|
||||
|
@ -325,7 +325,7 @@ class MongoDB:
|
|||
result = {
|
||||
"result": "OK",
|
||||
"value": json.loads(dumps(
|
||||
self.db[self.collection_instances].find_one(
|
||||
self.db[self.collection_instances].find(
|
||||
{'$and': [{"date": int(date), "cluster": cluster, "node": node, "vmid": int(vmid)}]})))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue