From: Eevee Date: Mon, 28 Dec 2009 07:19:23 +0000 (-0800) Subject: Fixed adding regular tags. X-Git-Url: http://git.veekun.com/zzz-floof.git/commitdiff_plain/453a7ca3b9d5e7093f843b883db58f9beb1b3aa8 Fixed adding regular tags. --- diff --git a/floof/lib/tags.py b/floof/lib/tags.py index b42814e..0984982 100644 --- a/floof/lib/tags.py +++ b/floof/lib/tags.py @@ -125,13 +125,13 @@ def add_tags(art, tag_string, adding_user, me): # Regular tag if add: tag = find_or_create(TagText, text=tag_text) - find_or_create(Tag, art=art, tagger=user, tagtext=tag) + find_or_create(Tag, art=art, tagger=adding_user, tagtext=tag) else: tag = TagText.get_by(text=tag_text) if tag: # XXX this will die - tag_assoc = Tag.get_by(art=art, tagger=user, tagtext=tag) + tag_assoc = Tag.get_by(art=art, tagger=adding_user, tagtext=tag) tag_assoc.delete() elixir.session.commit()