From df4bb531d216828878d0b463a5c80c974721ffd7 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 19 May 2022 13:57:07 +0200 Subject: [PATCH] fix: [ui tag selector] force custom tags --- bin/core/ail_2_ail.py | 10 ++++++---- var/www/templates/tags/block_tags_selector.html | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/core/ail_2_ail.py b/bin/core/ail_2_ail.py index 027eb791..70269e82 100755 --- a/bin/core/ail_2_ail.py +++ b/bin/core/ail_2_ail.py @@ -1028,8 +1028,9 @@ def api_create_sync_queue(json_dict): tags = json_dict.get('tags') if not tags: return {"status": "error", "reason": "no tags provided"}, 400 - if not Tag.are_enabled_tags(tags): - return {"status": "error", "reason": "Invalid/Disabled tags"}, 400 + # FIXME: add custom tags + # if not Tag.are_enabled_tags(tags): + # return {"status": "error", "reason": "Invalid/Disabled tags"}, 400 max_size = json_dict.get('max_size') if not max_size: @@ -1064,8 +1065,9 @@ def api_edit_sync_queue(json_dict): tags = json_dict.get('tags') if tags: - if not Tag.are_enabled_tags(tags): - return {"status": "error", "reason": "Invalid/Disabled tags"}, 400 + # FIXME: add custom tags + # if not Tag.are_enabled_tags(tags): + # return {"status": "error", "reason": "Invalid/Disabled tags"}, 400 edit_sync_queue_filter_tags(queue_uuid, tags) max_size = json_dict.get('max_size') diff --git a/var/www/templates/tags/block_tags_selector.html b/var/www/templates/tags/block_tags_selector.html index 06b7779b..b3bae6c7 100644 --- a/var/www/templates/tags/block_tags_selector.html +++ b/var/www/templates/tags/block_tags_selector.html @@ -35,6 +35,7 @@ +