From 2341849e541e36810f22d8dd71200c2b364abbe3 Mon Sep 17 00:00:00 2001 From: boyska Date: Wed, 25 Aug 2021 00:31:44 +0200 Subject: [PATCH] remove unused API call --- techrec/server.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/techrec/server.py b/techrec/server.py index efd0232..bb9c378 100644 --- a/techrec/server.py +++ b/techrec/server.py @@ -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():