diff --git a/backend/projects/views.py b/backend/projects/views.py index 18ebbdf8c..637837638 100644 --- a/backend/projects/views.py +++ b/backend/projects/views.py @@ -878,7 +878,7 @@ def convert_prediction_json_to_annotation_result(pk, proj_type): # converting prediction_json to result (wherever it exists) for every task. if prediction_json == None: return result - for pred_type, pred_json in prediction_json.keys(): + for pred_type, pred_json in prediction_json.items(): for idx, val in enumerate(pred_json): label_dict = { "origin": "manual",