annotate .hgignore @ 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 c8310574ec92
children
rev   line source
29
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
1 syntax: glob
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
2
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
3 *.orig
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
4 *.rej
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
5 *~
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
6 *.pyc
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
7 *.swp
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
8 \#*\#
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
9 .\#*
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
10 getan.log
f5426961a380 Add .hgignore:
Thomas Arendsen Hein <thomas@intevation.de>
parents:
diff changeset
11 time.db
75
fa53e2ec484d Ignore ctags file
Björn Ricks <bjoern.ricks@intevation.de>
parents: 29
diff changeset
12 tags
178
3f1ffb879ee8 Update hgignore file
Björn Ricks <bjoern.ricks@intevation.de>
parents: 75
diff changeset
13 getan.egg-info
258
4f7cb3693d20 Ignore urwid subdirs in getan
Björn Ricks <bjoern.ricks@intevation.de>
parents: 178
diff changeset
14 urwid*
383
c8310574ec92 Ignore dist and build directories
Björn Ricks <bjoern.ricks@intevation.de>
parents: 258
diff changeset
15 dist
c8310574ec92 Ignore dist and build directories
Björn Ricks <bjoern.ricks@intevation.de>
parents: 258
diff changeset
16 build
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)