diff --git a/app.py b/app.py index 1b0ab05..fbdada0 100644 --- a/app.py +++ b/app.py @@ -961,7 +961,9 @@ def get_active_months_query(visible_lists_query=None): def normalize_name(name): - return (name or "").strip().lower() + if not name: + return "" + return re.sub(r'\s+', ' ', name).strip().lower() ############# OCR ###########################