Mercurial > getan
comparison scripts/getan-report @ 550:28b1c18c900f
Specify project keys in getan-report with SQL patterns
* In getan-report project keys can now be specified with SQL patterns.
This allows projects and their sub-projects to be better selected for output.
% - zero, one, or multiple characters
_ - single character
author | Magnus Schieder <mschieder@intevation.de> |
---|---|
date | Tue, 11 Feb 2020 15:46:37 +0100 |
parents | d5acadeef0f8 |
children | d44ee9cd7261 |
comparison
equal
deleted
inserted
replaced
549:413cabeca333 | 550:28b1c18c900f |
---|---|
33 help="""name of getan template (wochenbericht, | 33 help="""name of getan template (wochenbericht, |
34 zeiterfassung, zeiterfassung2), | 34 zeiterfassung, zeiterfassung2), |
35 external templates must be stored in | 35 external templates must be stored in |
36 ~/.getan/templates/ to be able to call them.""") | 36 ~/.getan/templates/ to be able to call them.""") |
37 parser.add_argument('-u', '--user', help='name of user') | 37 parser.add_argument('-u', '--user', help='name of user') |
38 parser.add_argument('-p', '--project', help='key of output project') | 38 parser.add_argument('-p', '--project', help='key (sql pattern) of output project') |
39 parser.add_argument('-w', '--week', type=int, help='week of year') | 39 parser.add_argument('-w', '--week', type=int, help='week of year') |
40 parser.add_argument('-y', '--year', type=int, help='year') | 40 parser.add_argument('-y', '--year', type=int, help='year') |
41 parser.add_argument('-c', '--lastweek', help='entries of last working week', | 41 parser.add_argument('-c', '--lastweek', help='entries of last working week', |
42 action='store_true') | 42 action='store_true') |
43 parser.add_argument('-m', '--empty', | 43 parser.add_argument('-m', '--empty', |