summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorLoïc Guégan <manzerbredes@mailbox.org>2025-07-24 17:55:00 +0200
committerLoïc Guégan <manzerbredes@mailbox.org>2025-07-24 17:55:00 +0200
commit1ec6083a26341dea31b8baac47415d36cb97c410 (patch)
treef2f11a1bb0de0f6787f24d8cfa7b90f6e76b232c /main.py
parent21c2155d61c4f2082362e53235019ef750325ccb (diff)
Minor changes
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.py b/main.py
index aba759d..f60a557 100755
--- a/main.py
+++ b/main.py
@@ -61,30 +61,30 @@ if i["output"]["semester_dates_as_events"]:
i["events"]["send_098888986"]["date"]=i["semester"]["end"]
while d <= send:
t = PrettyTable(min_width=i["output"]["min_col_width"])
- week="Week "+str(w) if i["output"]["show_weeks"] else ""
+ week=i["output"]["labels"]["weeks"].format(w) if i["output"]["show_weeks"] else ""
t.field_names = [week, "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"]
if i["output"]["show_dates"]:
- t.add_row(["Date",
+ t.add_row([i["output"]["labels"]["dates"],
formatday(getnextdayn(d, 0)),
formatday(getnextdayn(d, 1)),
formatday(getnextdayn(d, 2)),
formatday(getnextdayn(d, 3)),
formatday(getnextdayn(d, 4))],divider=True)
if i["output"]["show_assigments"]:
- t.add_row(["Assigment",
+ t.add_row([i["output"]["labels"]["assignments"],
getassign(getnextdayn(d, 0)),
getassign(getnextdayn(d, 1)),
getassign(getnextdayn(d, 2)),
getassign(getnextdayn(d, 3)),
getassign(getnextdayn(d, 4))],divider=True)
- t.add_row(["Lecture",
+ t.add_row([i["output"]["labels"]["lectures"],
getlecture(getnextdayn(d, 0)),
getlecture(getnextdayn(d, 1)),
getlecture(getnextdayn(d, 2)),
getlecture(getnextdayn(d, 3)),
getlecture(getnextdayn(d, 4))],divider=True)
if i["output"]["show_events"]:
- t.add_row(["Other",
+ t.add_row([i["output"]["labels"]["events"],
getevents(getnextdayn(d, 0)),
getevents(getnextdayn(d, 1)),
getevents(getnextdayn(d, 2)),