Fix request variable not found

This commit is contained in:
Jeremy Zhang 2017-03-27 09:12:54 -07:00
parent 69ede80892
commit fdb3749d90

View File

@ -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)