aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlessons.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lessons.py b/lessons.py
index cf0dec9..b29918d 100755
--- a/lessons.py
+++ b/lessons.py
@@ -90,8 +90,8 @@ def format_period(period: webuntis.objects.PeriodObject,
if period_evs:
for event in period_evs:
period_events += f' {event.summary} |'
- # strip the trailing ' |' suffix
- period_events = period_events[:-2]
+ # strip the leading ' ' and trailing ' |'
+ period_events = period_events[1:-2]
output = config.get(
'fmt') or '{week} {date.strftime(\'%d.%m\')} {period_events}'