From: Roland Häder Date: Sat, 10 Jun 2023 17:05:40 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ee384667c036da07ee0247622b395c8af979bee;p=fba.git Continued: - ops wrong fix --- diff --git a/api.py b/api.py index a9c0e4d..15ed693 100644 --- 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