raise maximum cid when submitting answers

This commit is contained in:
Ross
2021-01-04 11:02:49 +00:00
parent df59de8e73
commit eaa3d11107
+1 -1
View File
@@ -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"})