diff --git a/app/item/views.py b/app/item/views.py index 9995937..f4b5b20 100644 --- a/app/item/views.py +++ b/app/item/views.py @@ -89,7 +89,7 @@ def archive(request, year=None, month=None, day=None, week=None): archive = models.Item.all_public() if year and month and day: date = datetime.strptime('%s-%s-%s' % (year, month, day), '%Y-%m-%d') - week = int(date.strftime('%W')) + week = int(date.strftime('%U')) year = int(year) archive_week = archive.filter(year=year, week=week).order_by('published') years = {}