aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-08-28 23:00:55 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-08-28 23:00:55 +0000
commit51cc22981e889d04416e48b9c5f3432424311bb6 (patch)
tree89bb808afc7883c7f7145e80d27e7495979ca156 /web
parentBug #233104: support for /data/YYYYMMDD/ pages. Thanks to manuel.schoelling@g... (diff)
downloadpackages-51cc22981e889d04416e48b9c5f3432424311bb6.tar.gz
packages-51cc22981e889d04416e48b9c5f3432424311bb6.tar.bz2
packages-51cc22981e889d04416e48b9c5f3432424311bb6.zip
Fix memcache key for new date code.
Diffstat (limited to 'web')
-rw-r--r--web/lib/filters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/filters.py b/web/lib/filters.py
index 21709af..e4a2b41 100644
--- a/web/lib/filters.py
+++ b/web/lib/filters.py
@@ -1,5 +1,5 @@
#from pkgcore.ebuild.cpv import CPV
-import re
+import re, time
from etc.const_data import ConstData
def limit_centercount(kwds):
@@ -161,7 +161,7 @@ class EntryFilters(object):
def date_filter(self, date, limit=None):
"""Filter packages to new by date only"""
- key = 'date_filter_%r%r' % (date, limit, )
+ key = 'date_filter_%s_%r' % (time.strftime("%Y%m%d",date), limit, )
def f():
return self._date_filter(date, limit)
return self.package_source.mc_wrap(key, f, time=300)