mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Change before_request to before_first_request (#56)
Change before_request to before_first_request
This commit is contained in:
parent
c42f808715
commit
b4fc721097
@ -55,10 +55,10 @@ def terms():
|
|||||||
def privacy():
|
def privacy():
|
||||||
return render_template("privacy_policy.html.j2")
|
return render_template("privacy_policy.html.j2")
|
||||||
|
|
||||||
@app.before_request
|
@app.before_first_request
|
||||||
def before_request():
|
def before_first_request():
|
||||||
discord_api.init_discordrest()
|
discord_api.init_discordrest()
|
||||||
|
|
||||||
@app.context_processor
|
@app.context_processor
|
||||||
def context_processor():
|
def context_processor():
|
||||||
return {"devs": get_administrators_list()}
|
return {"devs": get_administrators_list()}
|
||||||
|
Loading…
Reference in New Issue
Block a user