Mercurial > getan
changeset 430:e2b05afaf1bc
Backed out changeset 5ee2ce059338.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Tue, 30 May 2017 08:48:36 +0200 |
parents | 5ee2ce059338 |
children | 8922713adbe6 |
files | CHANGES scripts/getan-eval.py |
diffstat | 2 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES Mon May 29 14:22:06 2017 +0200 +++ b/CHANGES Tue May 30 08:48:36 2017 +0200 @@ -1,8 +1,5 @@ 2.1 xx.xx.20xx UNRELEASED - * (minor) In case of missing -u/--user parameter, scripts/getan-eval.py - will output an error message. - 2.0 03.05.2017 (Honoring Björn Ricks who did 90% of this release's development work.)
--- a/scripts/getan-eval.py Mon May 29 14:22:06 2017 +0200 +++ b/scripts/getan-eval.py Tue May 30 08:48:36 2017 +0200 @@ -22,8 +22,7 @@ help="getan database", metavar="DATABASE") parser.add_option("-t", "--template", dest="template", metavar="TEMPLATE", help="name of getan template") - parser.add_option("-u", "--user", dest="user", - help="[REQUIRED] name of user") + parser.add_option("-u", "--user", dest="user", help="name of user") parser.add_option("-p", "--project", dest="project", help="key of output project") parser.add_option("-w", "--week", type="int", dest="week", @@ -57,8 +56,6 @@ if options.user: user = options.user.decode(encoding) - else: - parser.error("You have to give the -u/--user parameter.") print render(database=options.database, user=user, template=template_name, year=year, week=week,