Trying to fix a problem with the tags.
This commit is contained in:
commit
9012aff1de
@ -84,6 +84,7 @@ class PostController(BaseController):
|
|||||||
db_tags = Session.query(Tag).filter(Tag.url.in_(tag_urls)).all()
|
db_tags = Session.query(Tag).filter(Tag.url.in_(tag_urls)).all()
|
||||||
post.tags = []
|
post.tags = []
|
||||||
for tag in db_tags:
|
for tag in db_tags:
|
||||||
|
if tag.name in tag_list:
|
||||||
tag_list.remove(tag.name)
|
tag_list.remove(tag.name)
|
||||||
post.tags.append(tag)
|
post.tags.append(tag)
|
||||||
for tag in tag_list:
|
for tag in tag_list:
|
||||||
|
Reference in New Issue
Block a user