modifies duplicate tag check for list of dict tag type change
This commit is contained in:
parent
37be7b6da6
commit
f99b5caeb6
@ -388,8 +388,8 @@ def convert_to_tag_list_of_dicts(tag_string):
|
|||||||
for tag in stripped_tag_string.split(
|
for tag in stripped_tag_string.split(
|
||||||
mg_globals.app_config['tags_delimiter']):
|
mg_globals.app_config['tags_delimiter']):
|
||||||
|
|
||||||
# Do not permit duplicate tags
|
# Ignore empty or duplicate tags
|
||||||
if tag.strip() and tag.strip() not in taglist:
|
if tag.strip() and tag.strip() not in [t['name'] for t in taglist]:
|
||||||
|
|
||||||
if mg_globals.app_config['tags_case_sensitive']:
|
if mg_globals.app_config['tags_case_sensitive']:
|
||||||
taglist.append({'name': tag.strip(),
|
taglist.append({'name': tag.strip(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user