From 24cc76c823f9a782e4e1cd0afb977417905510a9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 21 Jul 2023 08:53:36 +0200 Subject: [PATCH] Continued: - cannot on-the-fly convert a list(?) of sqlite3.Row objects dicts --- daemon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 817a6ef..9478369 100755 --- a/daemon.py +++ b/daemon.py @@ -123,8 +123,7 @@ LIMIT ?", [value, amount] ) domainlist = database.cursor.fetchall() - - return JSONResponse(status_code=200, content=dict(domainlist)) + return domainlist @router.get(config.get("base_url") + "/api/top.json", response_class=JSONResponse) def api_index(request: Request, mode: str, value: str, amount: int): -- 2.39.5