From 21c2155d61c4f2082362e53235019ef750325ccb Mon Sep 17 00:00:00 2001 From: Loïc Guégan Date: Thu, 24 Jul 2025 17:02:26 +0200 Subject: Minor changes --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 5367123..aba759d 100755 --- a/main.py +++ b/main.py @@ -31,10 +31,10 @@ def getlecture(d): for l in i["lectures"]: date=parse_date(i["lectures"][l]["date"]) if d==date: - lecturer="" + text=textwrap.fill(i["lectures"][l]["name"],i["output"]["text_wrap"]) if i["output"]["show_lecturers"]: - lecturer="\n ("+i["lectures"][l]["who"]+")" - return textwrap.fill(i["lectures"][l]["name"]+lecturer,i["output"]["text_wrap"]) + text+="\n"+textwrap.fill("("+i["lectures"][l]["who"]+")",i["output"]["text_wrap"]) + return text return "" def getevents(d): val="" -- cgit v1.2.3