From 5be861d03c12300d92d22e509fd094ad343bc25a Mon Sep 17 00:00:00 2001 From: Solumath Date: Fri, 6 Sep 2024 18:29:29 +0200 Subject: [PATCH] fix: relation faculty --- features/verify_helper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/features/verify_helper.py b/features/verify_helper.py index a63adde4f..e709c186e 100644 --- a/features/verify_helper.py +++ b/features/verify_helper.py @@ -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