[Getan-commits] [PATCH] Fix: year must be an int in template.render function

Wald Commits scm-commit at wald.intevation.org
Tue Jan 6 10:18:47 CET 2015


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1420535924 -3600
# Node ID b8cd8751cba097f75cc561e288ffb4a937cd2771
# Parent  cf0406ed424a438be2ae9e24dd61b67d70165e42
Fix: year must be an int in template.render function

diff -r cf0406ed424a -r b8cd8751cba0 scripts/zeiterfassung.py
--- a/scripts/zeiterfassung.py	Mon Jan 05 11:07:39 2015 +0100
+++ b/scripts/zeiterfassung.py	Tue Jan 06 10:18:44 2015 +0100
@@ -76,7 +76,7 @@
         elif opt in ("--list", "-l"):
             list_projects = True
         elif opt in ("--year", "-y"):
-            year = val
+            year = int(val)
         elif opt in ("--week", "-w"):
             week = int(val)
         elif opt in ("--lastweek", "-c") and not week:


More information about the Getan-commits mailing list