fixed critical bug with the tags

This commit is contained in:
Ross Mountjoy 2020-03-19 19:54:31 -04:00
parent 7d34c3f258
commit 5d0cbcd0e3

View File

@ -87,9 +87,7 @@ def context_processor():
tags_form = TagsForm()
tags = [tag.strip() for tag in tags]
for tag in tags:
if tags.count(tag) > 1:
tags.remove(tag)
tags = list(dict.fromkeys(tags))
tags_form.tags.choices += [(tag, tag) for tag in tags]
settings = Settings.query.first()
if settings.background == "random":