summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorLoïc Guégan <manzerbredes@mailbox.org>2025-07-27 14:04:36 +0200
committerLoïc Guégan <manzerbredes@mailbox.org>2025-07-27 14:04:36 +0200
commit34c5be47ca807ef09a42569604341cd97e07d188 (patch)
tree739e162960583e0ee8d42670811d110629e2d231 /main.py
parentfb3a0ace74c3b359c8507ec84f0713ed19605417 (diff)
Add support for output format
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.py b/main.py
index 711ce1e..e089405 100755
--- a/main.py
+++ b/main.py
@@ -167,7 +167,7 @@ while d<=sem["end"]:
formatprojects(getnextdayn(d, 2)),
formatprojects(getnextdayn(d, 3)),
formatprojects(getnextdayn(d, 4))],False)
- print(t)
+ print(t.get_formatted_string(_c["format"]))
d=getnextmonday(d)
w+=1
if d<sem["end"]:
@@ -187,7 +187,7 @@ for s in sem["slots"]:
if not _cslot["show_room"]:
t.del_column(t.field_names[-1])
print(s+":")
- print(t)
+ print(t.get_formatted_string(_c["format"]))
#### Gen projects deadline tables
if len(sem["projects"].keys()) > 0:
@@ -210,4 +210,4 @@ if len(sem["projects"].keys()) > 0:
if not _cproj["show_week"]:
t.del_column(t.field_names[0])
print("Projects deadlines:")
- print(t)
+ print(t.get_formatted_string(_c["format"]))