fixed another critical bug with the tags
This commit is contained in:
parent
fddd5f8e79
commit
3bd607a33d
@ -83,11 +83,13 @@ def context_processor():
|
|||||||
app_db.groups = None
|
app_db.groups = None
|
||||||
if check_groups(app_db.groups, current_user):
|
if check_groups(app_db.groups, current_user):
|
||||||
apps.append(app_db)
|
apps.append(app_db)
|
||||||
tags += app_db.tags.split(",")
|
if app_db.tags:
|
||||||
|
tags += app_db.tags.split(",")
|
||||||
|
|
||||||
tags_form = TagsForm()
|
tags_form = TagsForm()
|
||||||
tags = [tag.strip() for tag in tags]
|
if len(tags) > 0:
|
||||||
tags = list(dict.fromkeys(tags))
|
tags = [tag.strip() for tag in tags]
|
||||||
|
tags = list(dict.fromkeys(tags))
|
||||||
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