.
This commit is contained in:
+4
-5
@@ -541,15 +541,14 @@ def loadJsonAnswer(answer):
|
||||
|
||||
posted_answer = answer["ans"]
|
||||
|
||||
# qidn 1 does not hold answer data (but should always arrive prior to 2)
|
||||
if answer["qidn"] == "1":
|
||||
posted_answer = ""
|
||||
|
||||
# Normal answers are just posted with the answer "Normal"
|
||||
normal = False
|
||||
if posted_answer == "Normal":
|
||||
normal = True
|
||||
posted_answer = ""
|
||||
# We can ignore the first ab
|
||||
#elif answer["qidn"] == "1" and posted_answer == "Abnormal":
|
||||
# return False
|
||||
|
||||
|
||||
if not exiting_answers:
|
||||
ans = CidUserAnswer(answer=posted_answer, normal=normal, cid=answer["cid"])
|
||||
|
||||
Reference in New Issue
Block a user