FIX unicode on old, too

This commit is contained in:
boyska 2019-11-15 19:48:39 +01:00
parent 58ba05012a
commit 4e0209f406

View file

@ -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,