It now works
This commit is contained in:
parent
d309906d3d
commit
86038b505f
1 changed files with 1 additions and 11 deletions
12
src/main.py
12
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue