view .hgtags @ 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 fa1eb72e2764
children 3ffdca6341a4
line wrap: on
line source
da3333fcf222d2299040d33952712f23a0e2a4f1 1.0
295cbbb42de43f760237797aae152b5435b73631 1.1beta1
295cbbb42de43f760237797aae152b5435b73631 1.1beta1
a69126bb29e694fffa27dc4e34131c59fac93a26 1.1beta1
03ae4c2b63507d996d8d7ab293391ad14c810ecf 1.1beta2
2c7f3bb7b6734a9f802a96dceeb49423cee042cc 1.1
69ef6f89e9309f4b54d4c7b72168579247debb4d 2.0
cd990c7dc746c013ce42b20378fe6ade96768935 2.0.post1
11c2a3beee919f5e8aa228097ad2eaf624923289 2.1
45b7b83efaed70a07f005a67cc0cd58a01290e67 2.2
45b7b83efaed70a07f005a67cc0cd58a01290e67 2.2
a4f04440f045cfcf53577cc214ba81dc115b7737 2.2
d80f40d239d28222ba82d40b1a874b0e15a65fa4 3.0
d80f40d239d28222ba82d40b1a874b0e15a65fa4 3.0
463894654d7750016f86fee65f033527e6dbd3be 3.0
185efdb9fa187d7cbe3eeeb3a71c5838960b7b84 3.1
185efdb9fa187d7cbe3eeeb3a71c5838960b7b84 3.1
1b6509e51b93f20197a5a5afc3ebf047785206ec 3.1
1b6509e51b93f20197a5a5afc3ebf047785206ec 3.1
bb08400729fb4d38976483c4d171f789b468d9a4 3.1
f8099adc30f2835005aef2eb7062a998dd3e6e56 3.2
f8099adc30f2835005aef2eb7062a998dd3e6e56 3.2
e30fef63f1ede08f78e3e6f4b0899c820f52c425 3.2
e30fef63f1ede08f78e3e6f4b0899c820f52c425 3.2
dbefc648ad71e9951adeee4afb4530bfbb800c2f 3.2
47c17df47500ae16ec1867a61e10904d28e24dcc 3.3
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)