From: Mint <> Date: Sun, 27 Nov 2022 20:04:45 +0000 (+0300) Subject: Replace leftover code with correct one X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36ae433c2e171a15f781a726459c18973917f185;p=fba.git Replace leftover code with correct one --- diff --git a/api.py b/api.py index 2aa0613..c9b1b39 100644 --- a/api.py +++ b/api.py @@ -34,7 +34,7 @@ def info(): def blocked(domain: str = None, reason: str = None): if domain == None and reason == None: raise HTTPException(status_code=400, detail="No filter specified") - if domain == None and reason == None: + conn = sqlite3.connect("blocks.db") c = conn.cursor() if domain != None: wildchar = "*." + ".".join(domain.split(".")[-domain.count("."):])