diff options
| author | Loïc Guégan <manzerbredes@mailbox.org> | 2025-07-25 12:08:12 +0200 |
|---|---|---|
| committer | Loïc Guégan <manzerbredes@mailbox.org> | 2025-07-25 12:08:12 +0200 |
| commit | 3ae5cd2a618b2a843391aead0b25f57554ea2e68 (patch) | |
| tree | 6504d25d7874a0b7aac1796ed66d38a554c30466 | |
| parent | cc04a362ae2a683d14d979b0872b08a9f939fd52 (diff) | |
Minor changes
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | infos.yaml | 1 | ||||
| -rwxr-xr-x | main.py | 4 |
3 files changed, 5 insertions, 4 deletions
@@ -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 | +------+--------+---------------------------------+ -` +``` @@ -6,6 +6,7 @@ semester: output: date_format: "%b %d" + format: "text" # Or html/json/csv/latex/mediawiki tables: calendar: hidden: no @@ -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"])) |
