Mercurial > getan > getan
diff getan/contrib/getan-eval.py @ 360:1b190fa27482
Allow to render only projects with entries in templates
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 03 Mar 2014 14:59:42 +0100 |
parents | 2b2e371b9bed |
children | 82a5dd050436 |
line wrap: on
line diff
--- a/getan/contrib/getan-eval.py Mon Mar 03 14:42:43 2014 +0100 +++ b/getan/contrib/getan-eval.py Mon Mar 03 14:59:42 2014 +0100 @@ -27,6 +27,9 @@ parser.add_option("-c", "--lastweek", dest="lastweek", help="entries of last working week", action="store_true") + parser.add_option("-m", "--empty", dest="empty", + help="show projects without an entries", + action="store_true") (options, args) = parser.parse_args() @@ -41,7 +44,7 @@ print render(database=options.database, user=options.user, template=template_name, year=year, week=week, - project=options.project) + project=options.project, empty_projects=options.empty) if __name__ == '__main__':