fixed critical bug with the tags
This commit is contained in:
parent
c9ec0aad8a
commit
fddd5f8e79
@ -87,9 +87,7 @@ def context_processor():
|
|||||||
|
|
||||||
tags_form = TagsForm()
|
tags_form = TagsForm()
|
||||||
tags = [tag.strip() for tag in tags]
|
tags = [tag.strip() for tag in tags]
|
||||||
for tag in tags:
|
tags = list(dict.fromkeys(tags))
|
||||||
if tags.count(tag) > 1:
|
|
||||||
tags.remove(tag)
|
|
||||||
tags_form.tags.choices += [(tag, tag) for tag in tags]
|
tags_form.tags.choices += [(tag, tag) for tag in tags]
|
||||||
settings = Settings.query.first()
|
settings = Settings.query.first()
|
||||||
if settings.background == "random":
|
if settings.background == "random":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user