speed improvements

This commit is contained in:
Alexander Kryklia
2012-11-27 13:16:47 +02:00
parent 9ce51ec6cf
commit 5723672e49

View File

@@ -1794,7 +1794,9 @@ class ImageResponse(LoncapaResponse):
if (llx <= gx <= urx) and (lly <= gy <= ury):
correct_map.set(aid, 'correct')
break
if regions[aid]:
# import ipdb; ipdb.set_trace()
if correct_map[aid]['correctness'] != 'correct' and regions[aid]:
import ipdb; ipdb.set_trace()
parsed_region = json.loads(regions[aid])
if parsed_region:
if type(parsed_region[0][0]) != list: