encoding error
HGr Bitte gib eine Versions-Meldung ein. Zeilen beginnend mit 'HG:' werden entfernt.
This commit is contained in:
parent
cf3fa4b18d
commit
7aed6ac354
@ -44,8 +44,14 @@ def get_overview(request):
|
|||||||
for key in dict:
|
for key in dict:
|
||||||
newdict[key] = [dict[key][0].encode('utf-8')]
|
newdict[key] = [dict[key][0].encode('utf-8')]
|
||||||
return newdict
|
return newdict
|
||||||
|
|
||||||
|
def encodedict(dict):
|
||||||
|
newdict = {}
|
||||||
|
for key in dict:
|
||||||
|
newdict[key] = [unicode(dict[key][0].decode('utf-8'))]
|
||||||
|
return newdict
|
||||||
try:
|
try:
|
||||||
sortfilter = parse_qs(request.COOKIES['participant_sortfilter'])
|
sortfilter = encodedict(parse_qs(request.COOKIES['participant_sortfilter']))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
sortfilter = {}
|
sortfilter = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user