Change before_request to before_first_request (#56)

Change before_request to before_first_request
This commit is contained in:
Jori van Ee 2017-09-28 18:36:29 +02:00 committed by Jeremy "EndenDragon" Zhang
parent c42f808715
commit b4fc721097

View File

@ -55,10 +55,10 @@ def terms():
def privacy():
return render_template("privacy_policy.html.j2")
@app.before_request
def before_request():
@app.before_first_request
def before_first_request():
discord_api.init_discordrest()
@app.context_processor
def context_processor():
return {"devs": get_administrators_list()}
return {"devs": get_administrators_list()}