From 1acc917c5ea6e9cda86f539773b8110565e84c4c Mon Sep 17 00:00:00 2001 From: Loïc Guégan Date: Sat, 26 Jul 2025 09:09:02 +0200 Subject: Minor changes --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.py') 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 -- cgit v1.2.3