-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (32 loc) · 879 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
from datetime import datetime
import sqlite3
con = sqlite3.connect("datas.db")
cursor = con.cursor()
previous_page: str | None = None
actual_page: str | None = None
row_sources: int | None = None
row_flashcards: int | None = None
sources_names: list = []
flashcards: list = []
sources_array: list = []
flashcards_array: list = []
table_deck: list = []
played_source_id: int | None = None
played_flashcard_id: int | None = None
selected_source_id: int | None = None
selected_flashcard_id: int | None = None
front_input_selected: bool = False
back_input_selected: bool = False
WEEKDAYS = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"]
FULL_WEEKDAYS = [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday",
"Sunday",
]
selected_date: datetime | str | None = None
front_layout: list[list] = [[]]
back_layout: list[list] = [[]]