Skip to content

Commit 6c4e409

Browse files
authored
Merge pull request #69 from filips123/fix-substitutions-updater
2 parents 1dc1cea + c48d50e commit 6c4e409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

API/gimvicurnik/updaters/eclassroom.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@ def _parse_substitutions(self, tables: Tables, effective: date) -> None:
441441
elif row == header_reservations:
442442
parser_type = ParserType.RESERVATIONS
443443
continue
444-
elif "Oddelek" in row[0] or "dijaki" in row[0]:
444+
elif "Oddelek" in row[0] or "Razred" in row[0] or "dijaki" in row[0]:
445445
parser_type = ParserType.UNKNOWN
446446
continue
447447

448448
# Skip empty rows
449-
if not any(row):
449+
if not any(row) or not row[1]:
450450
continue
451451

452452
# Parse substitutions

0 commit comments

Comments
 (0)