From 453a7ca3b9d5e7093f843b883db58f9beb1b3aa8 Mon Sep 17 00:00:00 2001 From: Eevee Date: Sun, 27 Dec 2009 23:19:23 -0800 Subject: [PATCH] Fixed adding regular tags. --- floof/lib/tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.7.4