Mercurial > code > home > repos > href
changeset 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 | 4434b3dac18e |
children | a79279515c84 |
files | link.py lookup.py |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
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: