changeset 124:5447fbf86c49

Lastweek < 10 must have a zero as prefix Fix querying for last week
author Björn Ricks <bjoern.ricks@intevation.de>
date Mon, 16 Jan 2012 09:50:43 +0100
parents e18d50dda87b
children d8c372f57da9
files getan/contrib/zeiterfassung.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/getan/contrib/zeiterfassung.py	Mon Jan 16 09:49:03 2012 +0100
+++ b/getan/contrib/zeiterfassung.py	Mon Jan 16 09:50:43 2012 +0100
@@ -184,6 +184,8 @@
             if lastweek <= 0:
                 lastweek = 52
             week = str(lastweek)
+            if lastweek < 10:
+                week = "0" + week
         elif opt in ("--year", "-y"):
             year = val
         elif opt in ("--empty", "-m"):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)