Mercurial > getan
diff scripts/getan-eval.py @ 390:da9a400848fd
Fix using umlauts in usernames like Björn for getan-eval.py script
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Mon, 09 Feb 2015 10:16:55 +0100 |
parents | 20fde79f8e12 |
children | 5ee2ce059338 |
line wrap: on
line diff
--- a/scripts/getan-eval.py Mon Jan 26 14:08:44 2015 +0100 +++ b/scripts/getan-eval.py Mon Feb 09 10:16:55 2015 +0100 @@ -54,7 +54,10 @@ Writer = codecs.getwriter(encoding) sys.stdout = Writer(sys.stdout) - print render(database=options.database, user=options.user, + if options.user: + user = options.user.decode(encoding) + + print render(database=options.database, user=user, template=template_name, year=year, week=week, project=options.project, empty_projects=options.empty)