[Getan-commits] [PATCH] Add current date to getan template context
Wald Commits
scm-commit at wald.intevation.org
Mon Mar 10 09:23:11 CET 2014
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1394439788 -3600
# Node ID a805aaed97dd252a1f59eb14cbcca37ec3d3388a
# Parent 8b44243b799a96a2a609646327c5fe84922c6261
Add current date to getan template context
diff -r 8b44243b799a -r a805aaed97dd getan/template.py
--- a/getan/template.py Fri Mar 07 16:02:07 2014 +0100
+++ b/getan/template.py Mon Mar 10 09:23:08 2014 +0100
@@ -122,4 +122,5 @@
context["current_year"] = c_year
context["unix_week"] = u_week
context["total_time"] = total_time(projects)
+ context["today"] = date.today()
return template.render(context)
More information about the Getan-commits
mailing list