changeset 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 9a0dba03d16c
children 58537062fe74
files scripts/getan-eval.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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)
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)