Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
neki manjši popravki za primere vaj
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Sep 20, 2023
1 parent 471eb5b commit 5e66825
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pdfparsers/untis202324v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ def parse(lines, all_classes, classes_archive: dict[int, dict], classes: dict[in
classes[i][n].gimsis_kratko_ime = classes_archive[i][n].kratko_ime
classes[i][n].gimsis_ime = classes_archive[i][n].ime

if csv_values[6] not in classes[i][n].gimsis_ime:
# naslednja dva primera dobro obrazložita situacijo:
# gimsis_ime: ŠVZ-M (Športna vzgoja)
# sharepoint ime: ŠVZ-M
#
# gimsis_kratko_ime: FIZv
# sharepoint ime: FIZv2
if not (csv_values[6] in classes[i][n].gimsis_kratko_ime or classes[i][n].gimsis_kratko_ime in csv_values[6]):
classes[i][n].opozori = True
# v primeru vaj ne applyjaj sprememb, samo opozori
if "vaje" in classes[i][n].gimsis_ime:
continue
if csv_values[2].lower() not in classes[i][n].profesor.lower():
classes[i][n].opozori = True

Expand Down

0 comments on commit 5e66825

Please sign in to comment.