From 3bf3b0f0c22cfc9f9c8672a4ed4164cf65c4d3fa Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 20 Feb 2019 11:08:19 +0000 Subject: [PATCH] Fixed tag put route --- openflexure_microscope/api/v1/blueprints/camera/capture.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openflexure_microscope/api/v1/blueprints/camera/capture.py b/openflexure_microscope/api/v1/blueprints/camera/capture.py index 861737a3..a2a5dc6f 100644 --- a/openflexure_microscope/api/v1/blueprints/camera/capture.py +++ b/openflexure_microscope/api/v1/blueprints/camera/capture.py @@ -443,8 +443,7 @@ class TagsAPI(MicroscopeView): if type(data_dict) != list: return abort(400) - for tag in data_dict: - capture_obj.put_tag(str(tag)) + capture_obj.put_tags(data_dict) metadata_tags = filter_dict(capture_obj.state, ['metadata', 'tags'])