修正了获取课表的数据,测试无误
This commit is contained in:
parent
19e1336a1e
commit
cef483ba1d
@ -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}
|
Loading…
x
Reference in New Issue
Block a user