Mercurial > getan
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 | 1 syntax: glob |
2 | |
3 *.orig | |
4 *.rej | |
5 *~ | |
6 *.pyc | |
7 *.swp | |
8 \#*\# | |
9 .\#* | |
10 getan.log | |
11 time.db | |
75 | 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 |