]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Fri, 21 Jul 2023 06:53:36 +0000 (08:53 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 21 Jul 2023 06:53:36 +0000 (08:53 +0200)
- cannot on-the-fly convert a list(?) of sqlite3.Row objects dicts

daemon.py

index 817a6ef19183bc3bc630611fe5915e379efc7321..9478369c9f68aef943efd1125574831ea917acc1 100755 (executable)
--- 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):