From: Roland Häder Date: Fri, 21 Jul 2023 06:53:36 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=24cc76c823f9a782e4e1cd0afb977417905510a9;p=fba.git Continued: - cannot on-the-fly convert a list(?) of sqlite3.Row objects dicts --- 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):