From f585d5c23e9978eec7e86d0a70ff5e086793ca73 Mon Sep 17 00:00:00 2001 From: Connor Nelson Date: Tue, 23 Jan 2024 21:19:22 -0700 Subject: [PATCH] Dojos: Fix crash --- dojo_plugin/api/v1/dojo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dojo_plugin/api/v1/dojo.py b/dojo_plugin/api/v1/dojo.py index 33427432b..4c40d8556 100644 --- a/dojo_plugin/api/v1/dojo.py +++ b/dojo_plugin/api/v1/dojo.py @@ -122,7 +122,7 @@ def post(self): private_key = data.get("private_key", "").replace("\r\n", "\n") key = f"rl:{get_ip()}:{request.endpoint}" - timeout = datetime.timedelta(days=1).total_seconds() + timeout = int(datetime.timedelta(days=1).total_seconds()) if not is_admin() and cache.get(key) is not None: return {"success": False, "error": "You can only create 1 dojo per day."}, 429