modify the struct of schedule

This commit is contained in:
lijingwei 2020-01-22 22:22:50 +08:00
parent 1eade7e117
commit 4afbb77769

View File

@ -106,8 +106,8 @@ def getSchedule(Ip, S):
else:
Time[o] = 0
else:
days_per_week[n[0]] = max(days_per_week[n[0]] , i+1)
Time[n[0]] = 1
days_per_week[int(n[0])] = max(days_per_week[int(n[0])] , i+1)
Time[int(n[0])] = 1
index += 1
temp_lesson['Time_split'] = Time
lesson[j*2+k][i].append(temp_lesson)