diff options
| author | Loïc Guégan <manzerbredes@mailbox.org> | 2025-07-24 17:55:00 +0200 |
|---|---|---|
| committer | Loïc Guégan <manzerbredes@mailbox.org> | 2025-07-24 17:55:00 +0200 |
| commit | 1ec6083a26341dea31b8baac47415d36cb97c410 (patch) | |
| tree | f2f11a1bb0de0f6787f24d8cfa7b90f6e76b232c | |
| parent | 21c2155d61c4f2082362e53235019ef750325ccb (diff) | |
Minor changes
| -rw-r--r-- | infos.yaml | 6 | ||||
| -rwxr-xr-x | main.py | 10 |
2 files changed, 11 insertions, 5 deletions
@@ -14,6 +14,12 @@ output: date_format: "%d.%m" text_wrap: 15 min_col_width: 12 + labels: + events: "Events" + lectures: "Lectures" + assignments: "Assignments" + dates: "Dates" + weeks: "Week {}" events: 1: @@ -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)), |
