1
0
Fork 0
forked from Fuji/Fuji

Add retrieve current period in sync function

This commit is contained in:
Maarceeli 2025-03-01 11:23:59 +01:00
parent 04e2352cd3
commit d2fc4bf3e2

View file

@ -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"