#task_histories

This commit is contained in:
xieshen 2020-11-05 08:48:43 +08:00
parent fe2162ad68
commit 36f0c44572
1 changed files with 0 additions and 3 deletions

View File

@ -106,8 +106,6 @@ def task_histories(request):
# o['run_time'] = r[3] # o['run_time'] = r[3]
# o['output'] = r[4][1:-1] # o['output'] = r[4][1:-1]
# data.append(o) # data.append(o)
print(task_id)
for id in list(set(task_id)): for id in list(set(task_id)):
with connection.cursor() as cursor: with connection.cursor() as cursor:
cursor.execute( cursor.execute(
@ -125,7 +123,6 @@ def task_histories(request):
with connection.cursor() as cursor1: with connection.cursor() as cursor1:
cursor1.execute("select * from tasks where id = '%s'" % (id)) cursor1.execute("select * from tasks where id = '%s'" % (id))
row1 = cursor1.fetchall() row1 = cursor1.fetchall()
print(row1)
for r1 in row1: for r1 in row1:
o1 = dict() o1 = dict()
o1['name'] = r1[1] o1['name'] = r1[1]