Mercurial > code > home > repos > href
diff link.py @ 21:8008ec2fd763
fix up link page reloading. tried davisjs; may not need it
Ignore-this: d0021609f019f0734e779a61e3e73b62
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 11 Jul 2013 00:45:55 -0700 |
parents | d44d3e4d415b |
children | d6a09e8efa56 |
line wrap: on
line diff
--- a/link.py Sun Mar 17 01:03:43 2013 -0700 +++ b/link.py Thu Jul 11 00:45:55 2013 -0700 @@ -32,6 +32,9 @@ raise ValueError("%s docs found for href %s" % (len(docs), uri)) else: return docs[0] + + def filter(self, user, startTime): + return self.coll.find({'user' : user, 't': {'$gte': startTime}}) def forDisplay(self, doc): """return a mustache-ready dict for this db doc"""