FIX unicode on old, too
This commit is contained in:
parent
58ba05012a
commit
4e0209f406
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ class RecAPI(Bottle):
|
||||||
|
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
start = date_read(req['starttime']) if 'starttime' in req else 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
|
end = date_read(req['endtime']) if 'endtime' in req else now
|
||||||
|
|
||||||
rec = Rec(name=name,
|
rec = Rec(name=name,
|
||||||
|
|
Loading…
Reference in a new issue