diff --git a/backend/core/utils.py b/backend/core/utils.py index 3181eec7..fe8c5619 100644 --- a/backend/core/utils.py +++ b/backend/core/utils.py @@ -245,7 +245,10 @@ def process_geojson(geojson_file_path, aoi_id, feedback=False): max_workers = ( (os.cpu_count() - 1) if os.cpu_count() != 1 else 1 ) # leave one cpu free always - + if feedback: + 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 with open(geojson_file_path) as f: