Commit cb80fb6d authored by Simon Daron's avatar Simon Daron
Browse files

Small bug, this week was not current week but next

parent 835e977f
......@@ -50,7 +50,7 @@ def metanav():
@register.inclusion_tag('includes/week.html', takes_context=True)
def weekview(context, year=None, week=None, fragment= None):
year = year if year else str(datetime.today().year)
week = week if week else str(datetime.today().isocalendar()[1])
week = week if week else str(datetime.today().isocalendar()[1]-1)
date = _date_from_string(year, '%Y', '1', '%w', week, '%W')
date = datetime(*date.timetuple()[:3])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment