]> git.mxchange.org Git - fba.git/commitdiff
c
authorMint <>
Mon, 8 Aug 2022 11:38:04 +0000 (14:38 +0300)
committerMint <>
Mon, 8 Aug 2022 11:38:04 +0000 (14:38 +0300)
api.py
index.html

diff --git a/api.py b/api.py
index 79d2d2aebdcf9864f397cca2c75e731d1fc71ef4..db924c6f1016bf4a1199058cb6d8df24217db9f8 100644 (file)
--- a/api.py
+++ b/api.py
@@ -72,7 +72,7 @@ def blocked(domain: str = None, reason: str = None):
     return {"blocks": result}
 
 @app.get(base_url+"/")
-def index(request: Request, domain: str = None, reason: str = None, wildcards: str = None):
+def index(request: Request, domain: str = None, reason: str = None):
     if domain == "" or reason == "":
         return responses.RedirectResponse("/")
     info = None
@@ -90,7 +90,7 @@ def index(request: Request, domain: str = None, reason: str = None, wildcards: s
         if not blocks.ok:
             raise HTTPException(status_code=blocks.status_code, detail=blocks.text)
         blocks = blocks.json()
-    return templates.TemplateResponse("index.html", {"request": request, "domain": domain, "blocks": blocks, "wildcards": wildcards, "reason": reason, "info": info})
+    return templates.TemplateResponse("index.html", {"request": request, "domain": domain, "blocks": blocks, "reason": reason, "info": info})
 
 if __name__ == "__main__":
     uvicorn.run("api:app", host="127.0.0.1", port=port, log_level="info")
index 98194025fa6c08cba2710e2e2800ca8a5bf88f6d..31fcab85596c9857f84df35f540f254f6f7ffccb 100644 (file)
@@ -76,7 +76,7 @@
                     <div class="block">
                         <img src="https://proxy.duckduckgo.com/ip3/{{block}}.ico" width=16/>
                         <b><a href="https://{{block}}">{{block}}</a></b>
-                        {% if block in wildcards %}
+                        {% if block in blocks.wildcards %}
                             (<span title="wildcard block">&lowast;</span>)
                         {% endif %}
                         <br/>