Forgot last year in archive generation

This commit is contained in:
Gregory Soutade 2015-01-06 17:50:59 +01:00
parent 62ed52d797
commit d1b86ba7cd

View File

@ -49,7 +49,7 @@ class Archive(Index):
end_year = last_post.creation_date.year end_year = last_post.creation_date.year
now = datetime.now() now = datetime.now()
for i in range(start_year, end_year): for i in range(start_year, end_year+1):
if i == now.year: continue if i == now.year: continue
self.cur_year = i self.cur_year = i