comparison scripts/zeiterfassung.py @ 386:b8cd8751cba0

Fix: year must be an int in template.render function
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 06 Jan 2015 10:18:44 +0100
parents 20fde79f8e12
children 617ced8c7a40
comparison
equal deleted inserted replaced
385:cf0406ed424a 386:b8cd8751cba0
74 elif opt in ("--help", "-h"): 74 elif opt in ("--help", "-h"):
75 usage() 75 usage()
76 elif opt in ("--list", "-l"): 76 elif opt in ("--list", "-l"):
77 list_projects = True 77 list_projects = True
78 elif opt in ("--year", "-y"): 78 elif opt in ("--year", "-y"):
79 year = val 79 year = int(val)
80 elif opt in ("--week", "-w"): 80 elif opt in ("--week", "-w"):
81 week = int(val) 81 week = int(val)
82 elif opt in ("--lastweek", "-c") and not week: 82 elif opt in ("--lastweek", "-c") and not week:
83 week = (datetime.now() - timedelta(7)).isocalendar()[1] 83 week = (datetime.now() - timedelta(7)).isocalendar()[1]
84 elif opt in ("--empty", "-m"): 84 elif opt in ("--empty", "-m"):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)