diff --git a/webapp/titanembeds/app.py b/webapp/titanembeds/app.py index e13c1f0..d2a7695 100644 --- a/webapp/titanembeds/app.py +++ b/webapp/titanembeds/app.py @@ -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()} \ No newline at end of file + return {"devs": get_administrators_list()}