summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-07-21 15:31:20 +0000
committerluxagraf <sng@luxagraf.net>2015-07-21 15:31:20 +0000
commit750738846b8ad07941ac1c61b60469da4166750a (patch)
tree84019c3dc43f7f721fb573d631577e4dcf6e089f /app
parentd17b1b5b59fb3232b849a10a03efa16a6f98acb1 (diff)
fixed bug in builder for date archives
Diffstat (limited to 'app')
-rw-r--r--app/builder/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 12d4f68..7da7df3 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -117,8 +117,8 @@ class BuildWriting(Build):
years = entry.objects.dates('pub_date', 'year')
for year in years:
year = year.strftime('%Y')
- qs = entry.objects.filter(status__exact=1, pub_date__year=year).order_by('-pub_date')
- c = Context({'type': 'year', 'date': year, 'object_list': qs})
+ qs = entry.objects.filter(status__exact=1, pub_date__year=year).order_by('pub_date')
+ c = Context({'type': 'year', 'year': year, 'object_list': qs})
t = render_to_string('archives/writing_date.html', c).encode('utf-8')
fpath = 'jrnl/%s/' % (year)
self.write_file(fpath, t)