From 4e0209f40663bc58228fafed196ff368ee40cec0 Mon Sep 17 00:00:00 2001 From: boyska Date: Fri, 15 Nov 2019 19:48:39 +0100 Subject: [PATCH] FIX unicode on old, too --- server/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.py b/server/server.py index bef57e9..0df1ddd 100644 --- a/server/server.py +++ b/server/server.py @@ -95,7 +95,7 @@ class RecAPI(Bottle): now = datetime.now() start = date_read(req['starttime']) if 'starttime' in req else now - name = req['name'] if 'name' in req else "" + name = req['name'].decode('utf8') if 'name' in req else u"" end = date_read(req['endtime']) if 'endtime' in req else now rec = Rec(name=name,