summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Guégan <manzerbredes@mailbox.org>2025-07-25 12:08:12 +0200
committerLoïc Guégan <manzerbredes@mailbox.org>2025-07-25 12:08:12 +0200
commit3ae5cd2a618b2a843391aead0b25f57554ea2e68 (patch)
tree6504d25d7874a0b7aac1796ed66d38a554c30466
parentcc04a362ae2a683d14d979b0872b08a9f939fd52 (diff)
Minor changes
-rw-r--r--README.md4
-rw-r--r--infos.yaml1
-rwxr-xr-xmain.py4
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"]))