- issue #493: internal error 500 on save query
This commit is contained in:
Garret Wassermann 2017-08-30 10:40:46 -04:00 committed by GitHub
commit 043a40682f

View File

@ -817,7 +817,7 @@ def ticket_list(request):
import json
from helpdesk.lib import b64decode
try:
query_params = json.loads(b64decode(str(saved_query.query)))
query_params = json.loads(b64decode(str(saved_query.query)).decode())
except ValueError:
# Query deserialization failed. (E.g. was a pickled query)
return HttpResponseRedirect(reverse('helpdesk:list'))
@ -1114,7 +1114,7 @@ def run_report(request, report):
import json
from helpdesk.lib import b64decode
try:
query_params = json.loads(b64decode(str(saved_query.query)))
query_params = json.loads(b64decode(str(saved_query.query)).decode())
except:
return HttpResponseRedirect(reverse('helpdesk:report_index'))