#task_histories

This commit is contained in:
xieshen 2020-11-03 15:01:35 +08:00
parent feb80349bc
commit 2ba900cb02
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ def task_histories(request):
task_id.append(r[1]) task_id.append(r[1])
o['status'] = r[2] o['status'] = r[2]
o['run_time'] = r[3] o['run_time'] = r[3]
o['output'] = r[4] o['output'] = r[4][1:-1]
with connection.cursor() as cursor1: with connection.cursor() as cursor1:
cursor1.execute("select * from tasks where id = '%s'" % (r[1])) cursor1.execute("select * from tasks where id = '%s'" % (r[1]))
row1 = cursor1.fetchall() row1 = cursor1.fetchall()