From 9a583bc79b19e0093e9e3489d8d288ac61f55d96 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Mon, 22 Jan 2024 18:42:22 +0545 Subject: [PATCH] fix for the feedback aoi id --- backend/core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/core/utils.py b/backend/core/utils.py index 82a403a8..fe8c5619 100644 --- a/backend/core/utils.py +++ b/backend/core/utils.py @@ -246,7 +246,7 @@ def process_geojson(geojson_file_path, aoi_id, feedback=False): (os.cpu_count() - 1) if os.cpu_count() != 1 else 1 ) # leave one cpu free always if feedback: - FeedbackLabel.objects.filter(aoi__id=aoi_id).delete() + FeedbackLabel.objects.filter(feedback_aoi__id=aoi_id).delete() else : Label.objects.filter(aoi__id=aoi_id).delete() # max_workers = os.cpu_count() # get total cpu count available on the