mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-27 12:45:17 -05:00
fix: SyntaxWarning for Escape Characters in String Literals (#4792)
This commit is contained in:
@@ -36,7 +36,7 @@ class RepositoryCookbooks(HouseholdRepositoryGeneric[ReadCookBook, CookBook]):
|
||||
data = SaveCookBook(**data)
|
||||
|
||||
new_slug = slugify(data.name)
|
||||
if not (data.slug and re.match(f"^({new_slug})(-\d+)?$", data.slug)):
|
||||
if not (data.slug and re.match(rf"^({new_slug})(-\d+)?$", data.slug)):
|
||||
data.slug = new_slug
|
||||
|
||||
max_retries = 10
|
||||
|
||||
Reference in New Issue
Block a user