From fdb3749d909efc44f1e786d5840b448d155038b5 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 27 Mar 2017 09:12:54 -0700 Subject: [PATCH] Fix request variable not found --- titanembeds/blueprints/api/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/titanembeds/blueprints/api/api.py b/titanembeds/blueprints/api/api.py index 24b97c0..77ae52d 100644 --- a/titanembeds/blueprints/api/api.py +++ b/titanembeds/blueprints/api/api.py @@ -226,9 +226,9 @@ def create_unauthenticated_user(): return jsonify(status=status) else: status = {'banned': True} - request = jsonify(status=status) - request.status_code = 403 - return request + response = jsonify(status=status) + response.status_code = 403 + return response @api.route("/query_guild", methods=["GET"]) @valid_session_required(api=True)