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

Commit

Permalink
če profesor ne klikne zaključi, se dogajajo čudne stvari
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Mar 21, 2024
1 parent de7f810 commit f0fe15a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gimsisapi/formtagparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ def get_grades(text):
grade_nonprimary.remove(best_grade)
best_grade.je_zakljucena = True
grade_primary.append(best_grade)
try:
total_perm += int(best_grade.ocena)
total_perm_count += 1
total += int(best_grade.ocena)
except Exception as e:
print(f"[GIMSIS FAILURE] Failure while parsing one of the grades whilst applying patch#1: {e} {text}")

if len(grade_primary) > 0:
for grade in grade_primary:
Expand Down

0 comments on commit f0fe15a

Please sign in to comment.