view debian/control @ 536:a59622c06936

Fix generating reports if no week given unix_week() cannot handle week being None but does so for year. It just assumes the current year in this case, although this only duplicates the initialisation of year with c_year in this context. week being None gives TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' load_entries() handles the case with no week given, thus call it anyhow. This fix makes it possible to invoke scripts/getan-report with a year given but no week and seeing the expected result (data for a whole year) instead of a traceback.
author Tom Gottfried <tom@intevation.de>
date Thu, 09 Jan 2020 11:32:34 +0100
parents 67863b5e1f06
children
line wrap: on
line source
Source: getan
Section: misc
Priority: optional
Maintainer: Bjoern Ricks <bjoern.ricks@intevation.de>
Build-Depends: debhelper (>= 7), python, python-setuptools
Standards-Version: 3.9.1.0

Package: getan
Architecture: all
Homepage: http://hg.intevation.org/getan/
Depends: python, python-urwid >= 1.0
Description: getan - A worklog like tool
 getan is a worklog like tool to keep track of your time working on a project.

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)