Skip to content

Commit 3f50182

Browse files
update flowchart images and report structure
1 parent 9b06cc4 commit 3f50182

8 files changed

Lines changed: 43 additions & 132 deletions

File tree

docs/build_schedule_flowchart.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/report.ipynb

Lines changed: 35 additions & 130 deletions
Large diffs are not rendered by default.

docs/software_flowchart.png

-91.7 KB
Binary file not shown.

docs/software_flowchart.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/user_flowchart.png

-76.7 KB
Binary file not shown.

docs/user_flowchart.svg

Lines changed: 1 addition & 0 deletions
Loading

src/study_smart/app.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from dash import Dash, html, dcc, Input, Output, State, ALL, ctx
23
import dash
34
import dash_bootstrap_components as dbc
@@ -403,7 +404,8 @@ def save_exams(n_clicks):
403404
return "💾 Save", ""
404405
df = pd.DataFrame(exams)
405406
df["topics"] = df["topics"].apply(lambda t: ", ".join(t) if isinstance(t, list) else "")
406-
df.to_excel("my_studysmart.xlsx", index=False)
407+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
408+
df.to_excel(os.path.join(BASE_DIR, "my_studysmart.xlsx"), index=False)
407409
return "💾 Save", "✅ Saved!"
408410

409411
# Callback — load exams
@@ -415,7 +417,8 @@ def save_exams(n_clicks):
415417
)
416418
def load_exams(n_clicks):
417419
try:
418-
df = pd.read_excel("my_studysmart.xlsx")
420+
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
421+
df = pd.read_excel(os.path.join(BASE_DIR, "my_studysmart.xlsx"))
419422
df["date"] = pd.to_datetime(df["date"]).dt.date
420423

421424
for _, row in df.iterrows():

0 commit comments

Comments
 (0)