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:
parent
aab75535e1
commit
701bed06f6
1 changed files with 4 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue