diff --git a/castellum/appointments/helpers.py b/castellum/appointments/helpers.py index 54a75e1c6ed71949a9eb4853c25405bfe817e4e1..4cf0137e2201d57e676a66976ebe709e2df81e54 100644 --- a/castellum/appointments/helpers.py +++ b/castellum/appointments/helpers.py @@ -122,10 +122,9 @@ def get_external_resource_events(resource, start, end): return [] try: events = [] - url = resource.url.format( - start=quote_plus(start.isoformat()), - end=quote_plus(end.isoformat()), - ) + url = resource.url\ + .replace('{start}', quote_plus(start.isoformat()))\ + .replace('{end}', quote_plus(end.isoformat())) text = cached_request(url, timeout=60) for event in icalparser.parse_events(text, start=start, end=end): events.append({