fix: groups key
All checks were successful
Build and Run VSTU Schedule Parser / build_and_run (push) Successful in 16s
All checks were successful
Build and Run VSTU Schedule Parser / build_and_run (push) Successful in 16s
This commit is contained in:
2
main.py
2
main.py
@@ -62,7 +62,7 @@ def gen_groups_from_states(states):
|
|||||||
|
|
||||||
for state in states:
|
for state in states:
|
||||||
for sheet in state['sheets'].values():
|
for sheet in state['sheets'].values():
|
||||||
gr = sheet['groups']
|
gr = sheet.get('groups', {})
|
||||||
if len(gr.keys()) == 0:
|
if len(gr.keys()) == 0:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user