view INTRODUCTION @ 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 75131561d098
children
line wrap: on
line source
This file gives some information about the available default keys in the 'getan'
view. Some further keys are self-explanatory while working with 'getan'.

|     key           |         description
================================================================================
| up/down (arrows)  |  Navigate up/down in ProjectList and EntryList.
| tab               |  Switch focus between ProjectList and EntryList
| enter             |  start/stop a project (in ProjectList), mark an entry (in
                       EntryList).
| [project key]     |  Selects a project to run. Will start it, if the key
                       pressed is the last to uniquely identify a project.
| space             |  Pause a running project (the time that will be inserted
                       into database is the real running time without the break.
| F1                |  Switch time display mode in ProjectList.
| F2                |  Switch sorting of entries in ProjectList.
| d                 |  Delete marked entries (in EntryList).
| e                 |  Edit the text of a (marked) entry.
| a                 |  Adjust the starting datetime of a (marked) entry.
| l                 |  Adjust the length of a (marked) entry.
| m                 |  Start the 'wizard' to move selected entries to another
                       project.
| esc               |  Exit the application. This is only possible if no project
                       is running (in ProjectList).
| +                 |  Start a dialog to add time to a running project. Only
                       possible if there is a running project (in ProjectList).
| -                 |  Start a dialog to subtract time from running project.
                       Only possible if there is a running project (in
                       ProjectList).
| ins               |  Create a new project (in ProjectList if no project is
                       running).
| backspace         |  Change key and description of a Project (in ProjectList
                       if no project is running).
| Control-L         |  Completely redraw the screen.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)