From 43c0d6244a9ddac09350cb0201fe8ddeb29c3e85 Mon Sep 17 00:00:00 2001 From: Jonathan Bobel Date: Mon, 17 Mar 2025 16:49:30 -0400 Subject: [PATCH] Addressing a test --- app/__init__.py | 2 +- app/main/views/templates.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/__init__.py b/app/__init__.py index be7f08146..9936aa1ee 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -682,4 +682,4 @@ def slugify(text): """ Converts text to lowercase, replaces spaces with hyphens, and removes invalid characters. """ - return re.sub(r'[^a-z0-9-]', '', re.sub(r'\s+', '-', text.lower())) + return re.sub(r"[^a-z0-9-]", "", re.sub(r"\s+", "-", text.lower())) diff --git a/app/main/views/templates.py b/app/main/views/templates.py index e51d2ae53..b6dd1df4a 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -685,9 +685,8 @@ def _is_latin1(s): def _get_content_count_error_and_message_for_template(template): - url = "https://en.wikipedia.org/wiki/ISO/IEC_8859-1" if template.template_type == "sms": - s1 = f"Templates won't save with these characters ™ ∞ • – ≠ “ ‘ … ≤ ≥ or any emoji present. " + s1 = "Templates won't save with these characters ™ ∞ • – ≠ “ ‘ … ≤ ≥ or any emoji present. " s2 = "
The errors they create lead to texts displaying incorrectly on older mobile phones." warning = ""