remove unused API call
This commit is contained in:
parent
fa0aec4276
commit
2341849e54
1 changed files with 0 additions and 18 deletions
|
@ -218,24 +218,6 @@ def check_job(recid: int):
|
|||
return ret("WIP")
|
||||
|
||||
|
||||
@app.get("/api/get/search")
|
||||
def search(request: Request):
|
||||
req = dict()
|
||||
req.update(request.query_params.items())
|
||||
logger.debug("Search request: %s" % (req))
|
||||
|
||||
values = db._search(**req)
|
||||
from pprint import pformat
|
||||
|
||||
logger.debug("Returned Values %s" % pformat([r.serialize() for r in values]))
|
||||
|
||||
ret = {}
|
||||
for rec in values:
|
||||
ret[rec.id] = rec_sanitize(rec)
|
||||
|
||||
logging.info("Return: %s" % ret)
|
||||
return ret
|
||||
|
||||
|
||||
@app.get("/api/get/ongoing")
|
||||
def get_ongoing():
|
||||
|
|
Loading…
Reference in a new issue