Skip to content

Commit

Permalink
Fix bugs with clearing images and swapped taxon/obs ID
Browse files Browse the repository at this point in the history
  • Loading branch information
JWCook committed Oct 10, 2024
1 parent 8168918 commit 8e185f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion naturtag/controllers/image_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run(self):
self.info('Select images to tag')
return

obs_id, taxon_id = self.selected_taxon_id, self.selected_observation_id
obs_id, taxon_id = self.selected_observation_id, self.selected_taxon_id
if not (obs_id or taxon_id):
self.info('Select either an observation or an organism to tag images with')
return
Expand Down Expand Up @@ -128,6 +128,8 @@ def refresh(self):

def clear(self):
"""Clear all images and input"""
self.selected_taxon_id = None
self.selected_observation_id = None
self.gallery.clear()
self.input_obs_id.clear()
self.input_taxon_id.clear()
Expand Down

0 comments on commit 8e185f2

Please sign in to comment.