From ccc1cd3da6f5633d5b3e48bc4280300f32b4de85 Mon Sep 17 00:00:00 2001 From: Victoria Earl Date: Fri, 8 Nov 2024 14:58:08 -0500 Subject: [PATCH] Fix URL handling for shift signups By changing the existing variable I broke the replace() line. This should hopefully fix that --- uber/site_sections/staffing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uber/site_sections/staffing.py b/uber/site_sections/staffing.py index 5551bd6fd..3c72d966c 100644 --- a/uber/site_sections/staffing.py +++ b/uber/site_sections/staffing.py @@ -18,9 +18,10 @@ def _convert_urls(desc): return desc for url in urls: + new_url = url if not url.startswith('http'): - url = 'https://' + url - desc = desc.replace(url, f'{url}') + new_url = 'https://' + url + desc = desc.replace(url, f'{url}') return desc