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