Skip to content

Commit

Permalink
Merge pull request hotosm#205 from hotosm/bug/fix_old_osm_feature
Browse files Browse the repository at this point in the history
BUG : Fix - > Fix overlapping feature for old osm features
  • Loading branch information
kshitijrajsharma authored Jan 23, 2024
2 parents a67b30e + 9a583bc commit 2387e43
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2387e43

Please sign in to comment.