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,8 +55,8 @@ 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