diff --git a/src/clear_bookings.py b/src/clear_bookings.py index 6422838..95a4b02 100644 --- a/src/clear_bookings.py +++ b/src/clear_bookings.py @@ -116,8 +116,8 @@ class DavEvent: uid = self.uid # Check if there is a token in the event description - token_pattern = r"\#[A-Z1-9]{12}\#" - match = re.search(token_pattern, description) + token_pattern = r"\#[A-Z0-9]{12}\#" + match = re.search(token_pattern, str(description)) if match: token = match.group() print(f"Priority token found in event description: {token}")