Skip to content

Commit

Permalink
Merge pull request #82 from filips123/fix-parsing-substitutions
Browse files Browse the repository at this point in the history
Added ignore case for substitutions
  • Loading branch information
PetJer authored Sep 2, 2023
2 parents 3b0e971 + 1a440cb commit 0f67fcd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion API/gimvicurnik/updaters/eclassroom.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,13 @@ def _parse_substitutions(self, tables: Tables, effective: date) -> None:
elif row == header_reservations:
parser_type = ParserType.RESERVATIONS
continue
elif "Oddelek" in row[0] or "Razred" in row[0] or "dijaki" in row[0] or "RAZREDNIK" in row[1]:
elif (
"Oddelek" in row[0]
or "Razred" in row[0]
or "dijaki" in row[0]
or "RAZREDNIK" in row[1]
or "Spoznavanje" in row[1]
):
parser_type = ParserType.UNKNOWN
continue

Expand Down

0 comments on commit 0f67fcd

Please sign in to comment.