mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 20:25:25 +02:00
Hide DBL banner if already voted, however homepage always shows regardless
This commit is contained in:
@ -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))))
|
||||
}
|
||||
|
Reference in New Issue
Block a user