#task_histories
This commit is contained in:
parent
a34971dfe0
commit
7f7cfa3666
|
@ -50,10 +50,6 @@ def alarm(request):
|
|||
row1 = cursor1.fetchall()
|
||||
data = []
|
||||
data_all = dict()
|
||||
# status = []
|
||||
# duration=[]
|
||||
# created_at=[]
|
||||
|
||||
data_all['title'] = n
|
||||
for r1 in row1:
|
||||
jc_data = []
|
||||
|
@ -61,12 +57,8 @@ def alarm(request):
|
|||
jc_data.append(r1[6])
|
||||
jc_data.append(r1[7])
|
||||
data.append(jc_data)
|
||||
# data.append(duration)
|
||||
# data.append(created_at)
|
||||
data_all['data'] = data
|
||||
res.append(data_all)
|
||||
# res.append(alarms)
|
||||
# print(res)
|
||||
return HttpResponse(json.dumps({
|
||||
"status": "1",
|
||||
"name": name,
|
||||
|
|
Loading…
Reference in New Issue