This commit is contained in:
Ross
2021-12-15 19:01:58 +00:00
parent 52b1526f26
commit c69403b0ce
+2
View File
@@ -223,6 +223,8 @@ def loadJsonAnswer(answer):
# Backend eid is just the object pk number # Backend eid is just the object pk number
# in the frontend this is appended with the type # in the frontend this is appended with the type
# e.g. anatomy/1 # e.g. anatomy/1
# TODO Update to only allow valid CIDs
eid = int(answer["eid"].split("/")[1]) eid = int(answer["eid"].split("/")[1])
# As access is not restricted make sure the data appears valid # As access is not restricted make sure the data appears valid
if (not isinstance(answer["cid"], int)) or ( if (not isinstance(answer["cid"], int)) or (