From 3ae5cd2a618b2a843391aead0b25f57554ea2e68 Mon Sep 17 00:00:00 2001 From: Loïc Guégan Date: Fri, 25 Jul 2025 12:08:12 +0200 Subject: Minor changes --- README.md | 4 ++-- infos.yaml | 1 + main.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 962ca68..1f1cd03 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Course Calendar -` +``` +--------------+--------------+--------------+--------------+--------------+--------------+ | Week 33 | Monday | Tuesday | Wednesday | Thursday | Friday | +--------------+--------------+--------------+--------------+--------------+--------------+ @@ -184,4 +184,4 @@ | 41 | Oct 08 | Mandatory assignment 2 deadline | | 44 | Oct 29 | Mandatory assignment 3 deadline | +------+--------+---------------------------------+ -` +``` diff --git a/infos.yaml b/infos.yaml index 8d54590..bc7aab1 100644 --- a/infos.yaml +++ b/infos.yaml @@ -6,6 +6,7 @@ semester: output: date_format: "%b %d" + format: "text" # Or html/json/csv/latex/mediawiki tables: calendar: hidden: no diff --git a/main.py b/main.py index e70e2b1..d56cf99 100755 --- a/main.py +++ b/main.py @@ -99,7 +99,7 @@ if not i["output"]["tables"]["calendar"]["hidden"]: getevents(getnextdayn(d, 2)), getevents(getnextdayn(d, 3)), getevents(getnextdayn(d, 4))]) - print(t) + print(t.get_formatted_string(i["output"]["format"])) for j in range(0,o["week_line_skip"]): print("") d=getnextmonday(d) @@ -128,4 +128,4 @@ if not i["output"]["tables"]["deadlines"]["hidden"]: msg=i["output"]["tables"]["deadlines"]["msg_deadline"].format(a) t.add_row([d.isocalendar().week,formatday(d),msg]) t.align["Assignment"] = "l" - print(t) + print(t.get_formatted_string(i["output"]["format"])) -- cgit v1.2.3