mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
Change generalsearch to stict id
This commit is contained in:
parent
701bed06f6
commit
78fca2bef4
1 changed files with 10 additions and 3 deletions
|
@ -36,9 +36,16 @@ class Auth:
|
||||||
|
|
||||||
|
|
||||||
class General_Search:
|
class General_Search:
|
||||||
def GET(self, id):
|
def GET(self, query, id):
|
||||||
return core.generalsearch('{ "_id": {0}}'.format(id))
|
try:
|
||||||
|
return core.generalsearch(query, id)
|
||||||
|
except BaseException as e:
|
||||||
|
result = {
|
||||||
|
"result": "ERROR",
|
||||||
|
"type": "PYTHON - API",
|
||||||
|
"value": "{0} {1}".format("Invalid request:", e)
|
||||||
|
}
|
||||||
|
return result
|
||||||
|
|
||||||
class QueryCache_Infra:
|
class QueryCache_Infra:
|
||||||
def GET(self, dest, date, cluster=None, node=None, vmid=None):
|
def GET(self, dest, date, cluster=None, node=None, vmid=None):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue