修正了获取课表的数据,测试无误

This commit is contained in:
lijingwei 2020-01-19 04:08:10 +00:00
parent 19e1336a1e
commit cef483ba1d

View File

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