ソースを参照

fix: error message

master
xuxiaofei 4年前
コミット
c5aa0b218b
  1. 4
      vislib/views/views.py

4
vislib/views/views.py

@ -48,8 +48,8 @@ def execSql(request):
column = (key.split('.'))[1] column = (key.split('.'))[1]
else: else:
column = key column = key
print(row[key], key)
if isinstance(row[key], bytes): if isinstance(row[key], bytes):
print(row[key], key)
json_data[index][column] = row[key].decode('UTF-8') json_data[index][column] = row[key].decode('UTF-8')
else: else:
json_data[index][column] = row[key] json_data[index][column] = row[key]
@ -63,6 +63,6 @@ def execSql(request):
response = { response = {
'code': 10000, 'code': 10000,
'message': 'fail', 'message': 'fail',
'data': e 'data': str(e)
} }
return JsonResponse(response) return JsonResponse(response)

読み込み中…
キャンセル
保存