1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-02-12 19:22:30 +00:00

Change generalsearch to stict id

This commit is contained in:
Tlams 2018-02-07 18:59:54 +00:00
parent aab75535e1
commit 701bed06f6

View file

@ -71,10 +71,10 @@ class Core:
return False
return True
def generalsearch(self, data):
if is_json(data):
return self.mongo.generalmongosearch(data)
else:
def generalsearch(self, collection, id):
try:
return self.mongo.generalmongosearch(collection, str(id))
except:
return json_decode({"value": "Bad request"})
def generalquerycacheinfra(self, dest, date, cluster=None, node=None, vmid=None):