annotate TODO @ 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 bad607aec1af
children
rev   line source
525
bad607aec1af Update TODO
Magnus Schieder <mschieder@intevation.de>
parents: 512
diff changeset
1 20181206 Magnus Schieder
bad607aec1af Update TODO
Magnus Schieder <mschieder@intevation.de>
parents: 512
diff changeset
2 * You want to edit a project name because another project name fits better or
bad607aec1af Update TODO
Magnus Schieder <mschieder@intevation.de>
parents: 512
diff changeset
3 you have a spelling error in the name.
bad607aec1af Update TODO
Magnus Schieder <mschieder@intevation.de>
parents: 512
diff changeset
4 * You want to delete a project because you noticed that you don't need it and
bad607aec1af Update TODO
Magnus Schieder <mschieder@intevation.de>
parents: 512
diff changeset
5 it only disturbs you.
bad607aec1af Update TODO
Magnus Schieder <mschieder@intevation.de>
parents: 512
diff changeset
6
509
f8099adc30f2 updated TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 500
diff changeset
7
498
1648ae282b7e Updated TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 484
diff changeset
8 20180806 Magnus Schieder
1648ae282b7e Updated TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 484
diff changeset
9 The break can be assigned to a project.
1648ae282b7e Updated TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 484
diff changeset
10
444
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
11 20180117 Magnus Schieder
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
12
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
13 Creating a new database with test data:
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
14
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
15 1) Delete getan_test_data.db if it already exists to create a new database.
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
16 2) Execute getan_test_data.py to get the test database getan_test_data.db.
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
17 (getan/test_data/getan_test_data.py)
459
aebfc0140b82 Update TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 454
diff changeset
18 3) Open getan with the test database. (getan /path/getan_test_data.db)
444
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
19
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
20 - Bug 1.0
459
aebfc0140b82 Update TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 454
diff changeset
21 4) Switch to the entries from the project pro1 with tab.
aebfc0140b82 Update TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 454
diff changeset
22 5) Mark with return and arrow keys ent1 and ent2.
aebfc0140b82 Update TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 454
diff changeset
23 6) Go back to the projects with tab.
446
2f8162d50612 TODO: Adds observations to multiselection-defect.
Bernhard Reiter <bernhard@intevation.de>
parents: 444
diff changeset
24
2f8162d50612 TODO: Adds observations to multiselection-defect.
Bernhard Reiter <bernhard@intevation.de>
parents: 444
diff changeset
25 20180118BER:
2f8162d50612 TODO: Adds observations to multiselection-defect.
Bernhard Reiter <bernhard@intevation.de>
parents: 444
diff changeset
26 Observation: ent1 and ent2 are not highlighted anymore.
2f8162d50612 TODO: Adds observations to multiselection-defect.
Bernhard Reiter <bernhard@intevation.de>
parents: 444
diff changeset
27
450
45b7b83efaed Prepares for release 2.2.
Magnus Schieder <mschieder@intevation.de>
parents: 448
diff changeset
28 20180126 Magnus Schieder
454
a4f04440f045 Improves coding style and phrasing.
Bernhard Reiter <bernhard@intevation.de>
parents: 450
diff changeset
29 The selection is deleted when switching to the projects.
a4f04440f045 Improves coding style and phrasing.
Bernhard Reiter <bernhard@intevation.de>
parents: 450
diff changeset
30 So ent1 and ent2 should not highlighted anymore.
444
08b61b78285d TODO: add multi-selection Bug report.
Magnus Schieder <mschieder@intevation.de>
parents: 443
diff changeset
31
459
aebfc0140b82 Update TODO.
Magnus Schieder <mschieder@intevation.de>
parents: 454
diff changeset
32
440
f441913a5cdc TODO: adds task for displaying of licensing info.
Bernhard Reiter <bernhard@intevation.de>
parents: 439
diff changeset
33 20160912 BER: Better code: states.py: classes EditEntryState and
400
527168c08ae4 Added possibility to move starting datetime of entries.
Bernhard Reiter <bernhard@intevation.de>
parents: 399
diff changeset
34 AdjustEntryState have same methods exit() and set_focus(), maybe join them?
399
67dc21692bfa Added a TODO item.
Bernhard Reiter <bernhard@intevation.de>
parents: 398
diff changeset
35
398
5f557bd2cfe0 Scanning for workpackage string is now closer to what zeitvertexung does.
Bernhard Reiter <bernhard@intevation.de>
parents: 397
diff changeset
36 Older:
5f557bd2cfe0 Scanning for workpackage string is now closer to what zeitvertexung does.
Bernhard Reiter <bernhard@intevation.de>
parents: 397
diff changeset
37
23
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents: 0
diff changeset
38 - Create a 'Help-Widget' to give the user an information about all possible
9c4e8ba3c4fa Added a new implementation of 'getan' based on urwid, a python console user interface library.
Ingo Weinzierl <ingo_weinzierl@web.de>
parents: 0
diff changeset
39 keys.
35
cfa9e755a5d2 Added TODO item (mainly to try the new commit list)
Thomas Arendsen Hein <thomas@intevation.de>
parents: 23
diff changeset
40
cfa9e755a5d2 Added TODO item (mainly to try the new commit list)
Thomas Arendsen Hein <thomas@intevation.de>
parents: 23
diff changeset
41 - reimplement RPN input for current getan implementation (28489e672e61)
295
abfa55c7c2b2 added some todos
Thomas Arendsen Hein <thomas@intevation.de>
parents: 35
diff changeset
42
abfa55c7c2b2 added some todos
Thomas Arendsen Hein <thomas@intevation.de>
parents: 35
diff changeset
43 - The sum of previous times and currently running time should be displayed as
abfa55c7c2b2 added some todos
Thomas Arendsen Hein <thomas@intevation.de>
parents: 35
diff changeset
44 in previous versions of getan.
abfa55c7c2b2 added some todos
Thomas Arendsen Hein <thomas@intevation.de>
parents: 35
diff changeset
45
abfa55c7c2b2 added some todos
Thomas Arendsen Hein <thomas@intevation.de>
parents: 35
diff changeset
46 - The currently running time should be shown near the project.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)