modify the struct of schedule

This commit is contained in:
lijingwei 2020-01-22 15:32:03 +08:00
parent c1b10eeac0
commit 4a8c1b9dda

View File

@ -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}