Mercurial > code > home > repos > href
diff link.py @ 16:d44d3e4d415b
don't show other user's tags as previously-saved tags to the current user
Ignore-this: 89491c15006254dbd5a67970b3834ac7
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Sun, 17 Mar 2013 00:48:23 -0700 |
parents | e054949143e9 |
children | 8008ec2fd763 |
line wrap: on
line diff
--- a/link.py Sat Mar 16 23:50:53 2013 -0700 +++ b/link.py Sun Mar 17 00:48:23 2013 -0700 @@ -24,8 +24,8 @@ tags.append(t) doc['extracted'] = dict(tags=tags, forUsers=forUsers) - def find(self, uri): - docs = list(self.coll.find({'href': uri})) + def find(self, uri, user): + docs = list(self.coll.find({'href': uri, 'user' : user})) if len(docs) == 0: raise NotFound("not found") elif len(docs) > 1: