summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rwxr-xr-xmain.py2
1 files changed, 1 insertions, 1 deletions
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