From 86038b505f3bcf830fc3a7c48b0bc5264205b83e Mon Sep 17 00:00:00 2001 From: Maarceeli Date: Sat, 15 Feb 2025 12:53:21 +0100 Subject: [PATCH] It now works --- src/main.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main.py b/src/main.py index e9886ff..51f38c3 100644 --- a/src/main.py +++ b/src/main.py @@ -38,18 +38,8 @@ def main(page: ft.Page): # Eduvulcan login - interface = PrometheusInterface( - auth_context=PrometheusAuthContext( - prometheus_web_credentials=PrometheusWebCredentials( - username=" ", password=" " - ) - ), - student_context=None, - ) - auth_context_raw = loadauth("Fuji", "Auth Context") - auth_context = interface.get_auth_context() - auth_context.model_validate_json(auth_context_raw) + auth_context = PrometheusAuthContext.model_validate_json(auth_context_raw) interface = PrometheusInterface( auth_context=auth_context,