modify the struct of schedule

This commit is contained in:
lijingwei 2020-01-22 16:23:12 +08:00
parent 4a8c1b9dda
commit c0fde1c824

View File

@ -121,7 +121,7 @@ def getSchedule(Ip, S):
days_per_week[n[0]] = max(days_per_week[n[0]] , i+1)
Time[n[0]] = 1
index += 1
temp_lesson['Time'] = Time
temp_lesson['Time_split'] = Time
lesson[j*2+k][i].append(temp_lesson)
data_cache = {'lesson':lesson,'days_per_week':days_per_week}
return {'errcode': 200, 'errmsg': 'ok', 'data': data_cache}