Fix import statement and add timetable retrieval using current month's dates
This commit is contained in:
parent
ceea7a5262
commit
b75bb64242
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,7 @@ import keyring
|
||||||
import threading
|
import threading
|
||||||
import configparser
|
import configparser
|
||||||
import flet as ft
|
import flet as ft
|
||||||
from i18n import *
|
from i18n import _
|
||||||
from utils import *
|
from utils import *
|
||||||
from pages.home import *
|
from pages.home import *
|
||||||
from pages.exams import *
|
from pages.exams import *
|
||||||
|
@ -61,6 +61,11 @@ def sync(page: ft.Page):
|
||||||
|
|
||||||
create_notes_database(notes_list=notes)
|
create_notes_database(notes_list=notes)
|
||||||
|
|
||||||
|
|
||||||
|
start, end = get_current_month_dates()
|
||||||
|
|
||||||
|
interface.get_timetable(from_=start, to=end)
|
||||||
|
|
||||||
def change_page(route):
|
def change_page(route):
|
||||||
routes = {
|
routes = {
|
||||||
"/": HomePage(),
|
"/": HomePage(),
|
||||||
|
|
Loading…
Add table
Reference in a new issue