.
This commit is contained in:
+2
-5
@@ -189,6 +189,7 @@ class Long(models.Model):
|
||||
#"feedback_image": [],
|
||||
#"annotations": [str(q.image_annotations)],
|
||||
"type": "long",
|
||||
"cached": False,
|
||||
}
|
||||
|
||||
return exam_question
|
||||
@@ -377,14 +378,10 @@ class LongSeries(models.Model):
|
||||
else:
|
||||
skipcount = skipcount + 1
|
||||
|
||||
print("skipped, no SliceLocation: {}".format(skipcount))
|
||||
print("skipped, no {}: {}".format(field, skipcount))
|
||||
|
||||
# ensure they are in the correct order
|
||||
slices = sorted(slices, key=lambda s: s[field].value)
|
||||
#if field == "SliceLocation":
|
||||
# slices = sorted(slices, key=lambda s: s.SliceLocation)
|
||||
#elif field == "InstanceNumber":
|
||||
# slices = sorted(slices, key=lambda s: s.InstanceNumber)
|
||||
|
||||
|
||||
#print(slices)
|
||||
|
||||
Reference in New Issue
Block a user