view .hgsigs @ 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 519a9f923806
children
line wrap: on
line source
4c6770764fd940f80267a286bee8e583e62115e5 0 iQEcBAABAgAGBQJZDDltAAoJEDxD9Mjv9dQqMYsIAKXDrE4x/VDub8iLLRz64MWrZQJpMimSaQNwPN4M/X17SWA+//LF5yYWTwqTYUdq12qyrWLVSiFPVvnFk/jmqyh8yEAx+cLOo1bKQHPW68WjnNcsQYmxYilz8RazVozqEpjM70o9NYK3W+gzjmnFupU9xcSrfcMeAEDxStcQgX2Q1TxK2yWLdji0Rh3pzR8oycZHG01ZVqK6+wdyLs5ntuSa3317O/v1hR4/2AHTAzE9iz6QSO60DJoo4VTU0Kw1gcc6HI6Ca1Ynkwko1ecQ13I0EFr5ucLylPGc4ijwxPz0US2J/CDDhK9lWR8By9sZWvVTAnwDpj7BjzKcMmT444o=
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)