]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2023 17:05:40 +0000 (19:05 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 10 Jun 2023 17:05:40 +0000 (19:05 +0200)
- ops wrong fix

api.py

diff --git a/api.py b/api.py
index a9c0e4dd428598f932507b0ab006bf6eecb50a4a..15ed693beb9beaf0db34ee6af4666a6b22e0c37e 100644 (file)
--- a/api.py
+++ b/api.py
@@ -78,11 +78,9 @@ def api_top(blocked: int = None, blockers: int = None, reference: int = None, so
     else:
         raise HTTPException(status_code=400, detail="No filter specified")
 
-    scores = fba.cursor.fetchall()
+    scores = list()
 
-    scores = []
-
-    for domain, highscore in scores:
+    for domain, highscore in fba.cursor.fetchall():
         scores.append({
             "domain"   : domain,
             "highscore": highscore