From: richard Date: Sun, 29 Feb 2004 01:16:03 +0000 (+0000) Subject: query saving fix X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=881233d6a063bcfd7dd8725be2a71ba6ae74d753;p=roundup.git query saving fix git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2130 57a73879-2fb5-44c3-a270-3262357dd7e2 --- 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()