summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--infos.yaml1
-rwxr-xr-xmain.py6
2 files changed, 4 insertions, 3 deletions
diff --git a/infos.yaml b/infos.yaml
index 968aafc..23ef1f1 100644
--- a/infos.yaml
+++ b/infos.yaml
@@ -126,6 +126,7 @@ events:
config:
name_wrap: 15 # Line break will follow if names exceed this value
+ format: "text" # Or html/json/csv/latex/mediawiki
calendar:
show_room: yes
show_time: yes
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"]))