summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
Diffstat (limited to 'app/builder')
-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)