From 881233d6a063bcfd7dd8725be2a71ba6ae74d753 Mon Sep 17 00:00:00 2001 From: richard Date: Sun, 29 Feb 2004 01:16:03 +0000 Subject: [PATCH] query saving fix git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2130 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/cgi/actions.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roundup/cgi/actions.py b/roundup/cgi/actions.py index 1f57ff8..46ff0e8 100755 --- a/roundup/cgi/actions.py +++ b/roundup/cgi/actions.py @@ -143,8 +143,9 @@ class SearchAction(Action): # and add it to the user's query multilink queries = self.db.user.get(self.userid, 'queries') - queries.append(qid) - self.db.user.set(self.userid, queries=queries) + if qid not in queries: + queries.append(qid) + self.db.user.set(self.userid, queries=queries) # commit the query change to the database self.db.commit() -- 2.30.2