Skip to content

Commit

Permalink
Remove geoarea status change functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
sudan45 committed Dec 10, 2024
1 parent a785f3a commit f773779
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/geo/mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,6 @@ def mutate(root, info, admin_level_id):
], ok=False)
admin_level.delete()
# check boundsfile is empty or not in Region
region = admin_level.region
if region.adminlevel_set.filter(bounds_file__isnull=True).count() == 0:
region.status = Region.Status.COMPLETED
region.save(update_fields=['status'])
return DeleteAdminLevel(errors=None, ok=True)
region.status = Region.Status.FAILED
region.save(update_fields=['status'])
return DeleteAdminLevel(errors=None, ok=True)


Expand Down

0 comments on commit f773779

Please sign in to comment.