Update 25.05.17.1 #2

Merged
xAndy merged 4 commits from main into live 2025-05-17 03:05:32 +02:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit 48f82d76db - Show all commits

View File

@ -52,11 +52,14 @@ def import_calendar(calendar):
room2, required_helpers = tuple(summary.rsplit(maxsplit=1))
room2 = room2.strip()
required_helpers = int(required_helpers)
room = f"{room} ({room2})"
if room != room2:
room = f"{room2} ({room})"
except ValueError:
required_helpers = int(summary)
except ValueError:
required_helpers = 0
if room != summary:
room = f"{summary} ({room})"
else:
try:
room, required_helpers = tuple(summary.rsplit(maxsplit=1))