modify the struct of schedule
This commit is contained in:
parent
c1b10eeac0
commit
4a8c1b9dda
@ -135,10 +135,4 @@ def getCurrentTime(Ip, S):
|
||||
)
|
||||
data = json.loads(r.content.decode('utf-8'))
|
||||
data_cache = data['data'].pop('DateList')
|
||||
return {'errcode': 200, 'errmsg': 'ok', 'data': data_cache}
|
||||
|
||||
data = connection("2018002129","cust5313.")
|
||||
data = getSchedule(data['ip'],data['s'])
|
||||
for d in data['data']['lesson']:
|
||||
print(d)
|
||||
print(data['data']['days_per_week'])
|
||||
return {'errcode': 200, 'errmsg': 'ok', 'data': data_cache}
|
Loading…
x
Reference in New Issue
Block a user