Skip to content

Commit

Permalink
fix: relation faculty
Browse files Browse the repository at this point in the history
  • Loading branch information
solumath authored and peterdragun committed Sep 6, 2024
1 parent 20aaea0 commit 5be861d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions features/verify_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ async def _parse_relation(self, user: dict) -> str | None:
# do not return yet if not FIT, check for all relations if student has multiple studies
if relation["fakulta"]["zkratka"] == "FIT":
return ret
elif relation["fakulta"] is None:
# missing relation to any faculty
continue
elif "fakulta" in relation.keys():
if relation["fakulta"]["zkratka"] == "FIT":
# FIT employee, replace only if not student
Expand Down

0 comments on commit 5be861d

Please sign in to comment.