Change status to be int instead of str

This commit is contained in:
Scoder12
2020-08-12 16:40:52 -07:00
parent 7d9b76f1eb
commit 4d76b91a1a
+1 -1
View File
@@ -187,7 +187,7 @@ def authed_ratelimit(
# Make a reponse object so that status can be set
if not isinstance(res, flask.Response):
res = flask.make_response(res)
res.status = "429"
res.status = 429
return res
num_requests[name] = times_requested + 1