Mercurial > getan
view 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 |
line wrap: on
line source
20181206 Magnus Schieder * You want to edit a project name because another project name fits better or you have a spelling error in the name. * You want to delete a project because you noticed that you don't need it and it only disturbs you. 20180806 Magnus Schieder The break can be assigned to a project. 20180117 Magnus Schieder Creating a new database with test data: 1) Delete getan_test_data.db if it already exists to create a new database. 2) Execute getan_test_data.py to get the test database getan_test_data.db. (getan/test_data/getan_test_data.py) 3) Open getan with the test database. (getan /path/getan_test_data.db) - Bug 1.0 4) Switch to the entries from the project pro1 with tab. 5) Mark with return and arrow keys ent1 and ent2. 6) Go back to the projects with tab. 20180118BER: Observation: ent1 and ent2 are not highlighted anymore. 20180126 Magnus Schieder The selection is deleted when switching to the projects. So ent1 and ent2 should not highlighted anymore. 20160912 BER: Better code: states.py: classes EditEntryState and AdjustEntryState have same methods exit() and set_focus(), maybe join them? Older: - Create a 'Help-Widget' to give the user an information about all possible keys. - reimplement RPN input for current getan implementation (28489e672e61) - The sum of previous times and currently running time should be displayed as in previous versions of getan. - The currently running time should be shown near the project.