parse events containing 2 levels of location data
This commit is contained in:
parent
422d588d53
commit
8a8c415015
|
@ -38,6 +38,12 @@ def import_calendar(calendar):
|
|||
if location:
|
||||
room = location
|
||||
try:
|
||||
try:
|
||||
# new edge case: location is defined, but summary contains an addition to the location and a count
|
||||
room2, required_helpers = tuple(summary.rsplit(maxsplit=1))
|
||||
required_helpers = int(required_helpers)
|
||||
room = f"{room} ({room2})"
|
||||
except ValueError:
|
||||
required_helpers = int(summary)
|
||||
except ValueError:
|
||||
required_helpers = 0
|
||||
|
|
Loading…
Reference in New Issue