Skip to content

Commit

Permalink
Edit existing regions
Browse files Browse the repository at this point in the history
  • Loading branch information
BryceBeagle committed Aug 24, 2021
1 parent 8bdae81 commit 16c69ab
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,13 +233,7 @@ def _set_widgets_enabled(self, enabled) -> None:
def _edit_zone_by_id(self, zone_id: int) -> None:
def _get_zone() -> Zone:
api_zone = api.get_zone(zone_id)

client_zone = Zone.from_api_zone(api_zone)

# TODO: Remove with addition of point moving/deleting
client_zone.coords = []

return client_zone
return Zone.from_api_zone(api_zone)

QTAsyncWorker(self, _get_zone, on_success=self.edit_zone).start()

Expand Down

0 comments on commit 16c69ab

Please sign in to comment.