summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Guégan <manzerbredes@mailbox.org>2025-07-26 09:09:02 +0200
committerLoïc Guégan <manzerbredes@mailbox.org>2025-07-26 09:09:02 +0200
commit1acc917c5ea6e9cda86f539773b8110565e84c4c (patch)
tree8123f4880d85eeae5864b6b2a2565cb9c3c16f81
parent3ce1b64c601feb91a87fb5e093eb04f228c56e1e (diff)
Minor changes
-rw-r--r--infos.yaml1
-rwxr-xr-xmain.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/infos.yaml b/infos.yaml
index 07dfac0..ea158e3 100644
--- a/infos.yaml
+++ b/infos.yaml
@@ -18,6 +18,7 @@ output:
calendar:
hidden: no
show_events: yes
+ show_time: no
show_lecturers: yes
show_assignments: yes
show_dates: yes
diff --git a/main.py b/main.py
index bfc63b8..07c77ed 100755
--- a/main.py
+++ b/main.py
@@ -52,7 +52,7 @@ def getlecture(d):
text=textwrap.fill(i["lectures"][l]["name"],o["text_wrap"])
if o["show_lecturers"]:
text+="\n"+textwrap.fill("("+i["lectures"][l]["who"]+")",o["text_wrap"])
- if (startT,endT) != (None, None):
+ if o["show_time"] and (startT,endT) != (None, None):
timeT=textwrap.fill(startT.strftime(i["output"]["time_format"])+"-"+endT.strftime(i["output"]["time_format"]),o["text_wrap"])
text=timeT+"\n"+text
return text