]> git.mxchange.org Git - fba.git/commitdiff
Replace leftover code with correct one
authorMint <>
Sun, 27 Nov 2022 20:04:45 +0000 (23:04 +0300)
committerMint <>
Sun, 27 Nov 2022 20:04:45 +0000 (23:04 +0300)
api.py

diff --git a/api.py b/api.py
index 2aa0613219707e7789fb629d66197eccb035505b..c9b1b39eeddcd02ebcc47b8f0dd61d7d01c03089 100644 (file)
--- 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("."):])