From 36ae433c2e171a15f781a726459c18973917f185 Mon Sep 17 00:00:00 2001 From: Mint <> Date: Sun, 27 Nov 2022 23:04:45 +0300 Subject: [PATCH] Replace leftover code with correct one --- api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("."):]) -- 2.39.5