From: Roland Häder Date: Tue, 23 May 2023 11:56:05 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e7d487f353ab05d81cc31c05e647a2e106a0e2aa;p=fba.git Continued: - if the software being used isn't regonized, skip them --- diff --git a/api.py b/api.py index 0174a8d..131ea38 100644 --- a/api.py +++ b/api.py @@ -42,7 +42,7 @@ def top(blocked: int = None, blockers: int = None, reference: int = None, softwa elif software != None: if software > 500: raise HTTPException(status_code=400, detail="Too many results") - fba.cursor.execute("SELECT software, COUNT(domain) FROM instances GROUP BY software ORDER BY COUNT(domain) DESC LIMIT ?", [software]) + fba.cursor.execute("SELECT software, COUNT(domain) FROM instances WHERE software IS NOT NULL GROUP BY software ORDER BY COUNT(domain) DESC LIMIT ?", [software]) else: raise HTTPException(status_code=400, detail="No filter specified")