diff --git a/webapp/titanembeds/app.py b/webapp/titanembeds/app.py index 7966335..3627991 100644 --- a/webapp/titanembeds/app.py +++ b/webapp/titanembeds/app.py @@ -81,4 +81,9 @@ def before_first_request(): @app.context_processor def context_processor(): - return {"devs": get_administrators_list(), "constants": constants, "af_mode_enabled": datetime.datetime.now().date() == datetime.date(datetime.datetime.now().year, 4, 1)} + return { + "devs": get_administrators_list(), + "constants": constants, + "af_mode_enabled": datetime.datetime.now().date() == datetime.date(datetime.datetime.now().year, 4, 1), + "dbl_voted": session.get("unauthenticated", True) == False and bool(redis_store.get("DiscordBotsOrgVoted/" + str(session.get("user_id", -1)))) + } diff --git a/webapp/titanembeds/templates/site_layout.html.j2 b/webapp/titanembeds/templates/site_layout.html.j2 index 3f30c76..14469d4 100644 --- a/webapp/titanembeds/templates/site_layout.html.j2 +++ b/webapp/titanembeds/templates/site_layout.html.j2 @@ -93,11 +93,13 @@ + {% if not dbl_voted or (dbl_voted and request.path == "/") %} + {% endif %} {% if af_mode_enabled %}