From d2fc4bf3e2213d0c4e4b386fa68f08ddecea3471 Mon Sep 17 00:00:00 2001 From: Maarceeli Date: Sat, 1 Mar 2025 11:23:59 +0100 Subject: [PATCH] Add retrieve current period in sync function --- src/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.py b/src/main.py index 1bc44a9..96bc1c5 100644 --- a/src/main.py +++ b/src/main.py @@ -47,6 +47,8 @@ def sync(): jsoncontext = auth_context.model_dump_json() saveauth("Fuji", "Auth Context", jsoncontext) + student = students[student] + current_period = next(period for period in student.periods if period.current) def main(page: ft.Page): # Page settings page.title = "Fuji"