modify the struct of schedule's cache

This commit is contained in:
lijingwei 2020-01-19 18:24:22 +08:00
parent 8fcd35627e
commit c15a717c3f

View File

@ -71,6 +71,8 @@ def getSchedule(Ip, S):
if( data[i][time[j]][k]['Dtos'] ):
data_cache[j*2+k][i] = []
for l in data[i][time[j]][k]['Dtos']:
temp = []
for m in l['Content']:
data_cache[j*2+k][i].append(m['Name'])
temp.append(m['Name'])
data_cache[j*2+k][i].append(temp)
return {'errcode': 200, 'errmsg': 'ok', 'data': data_cache}