fixed critical bug with the tags
This commit is contained in:
parent
259068e618
commit
c9ec0aad8a
@ -86,8 +86,11 @@ def context_processor():
|
|||||||
tags += app_db.tags.split(",")
|
tags += app_db.tags.split(",")
|
||||||
|
|
||||||
tags_form = TagsForm()
|
tags_form = TagsForm()
|
||||||
|
tags = [tag.strip() for tag in tags]
|
||||||
|
for tag in 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]
|
||||||
print(tags_form.tags.choices)
|
|
||||||
settings = Settings.query.first()
|
settings = Settings.query.first()
|
||||||
if settings.background == "random":
|
if settings.background == "random":
|
||||||
if len(os.listdir(backgrounds_images_folder)) < 1:
|
if len(os.listdir(backgrounds_images_folder)) < 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user