From eaa3d11107500d35e8ad4bd6e3224782e1b34fb6 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 4 Jan 2021 11:02:49 +0000 Subject: [PATCH] raise maximum cid when submitting answers --- anatomy/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anatomy/views.py b/anatomy/views.py index 339c812a..cb3b1b1d 100644 --- a/anatomy/views.py +++ b/anatomy/views.py @@ -284,7 +284,7 @@ def loadJsonAnswer(answer): return JsonResponse({"success": False, "error": "cid or eid or answers not defined"}) # The model should catch invalid data but this should be less intensive - max_int = 10000000 + max_int = 999999999999999999999 if answer["cid"] > max_int or answer["eid"] > max_int: return JsonResponse({"success": False, "error": "invalid cid"})