Trying to fix a problem with the tags.

This commit is contained in:
Raoul Snyman 2010-02-26 11:42:55 +02:00
commit 9012aff1de

View File

@ -84,6 +84,7 @@ class PostController(BaseController):
db_tags = Session.query(Tag).filter(Tag.url.in_(tag_urls)).all()
post.tags = []
for tag in db_tags:
if tag.name in tag_list:
tag_list.remove(tag.name)
post.tags.append(tag)
for tag in tag_list: