#task_histories

This commit is contained in:
xieshen 2020-11-03 16:43:34 +08:00
parent a34971dfe0
commit 7f7cfa3666
1 changed files with 0 additions and 8 deletions

View File

@ -50,10 +50,6 @@ def alarm(request):
row1 = cursor1.fetchall() row1 = cursor1.fetchall()
data = [] data = []
data_all = dict() data_all = dict()
# status = []
# duration=[]
# created_at=[]
data_all['title'] = n data_all['title'] = n
for r1 in row1: for r1 in row1:
jc_data = [] jc_data = []
@ -61,12 +57,8 @@ def alarm(request):
jc_data.append(r1[6]) jc_data.append(r1[6])
jc_data.append(r1[7]) jc_data.append(r1[7])
data.append(jc_data) data.append(jc_data)
# data.append(duration)
# data.append(created_at)
data_all['data'] = data data_all['data'] = data
res.append(data_all) res.append(data_all)
# res.append(alarms)
# print(res)
return HttpResponse(json.dumps({ return HttpResponse(json.dumps({
"status": "1", "status": "1",
"name": name, "name": name,