From df002c383ca2cc036f714b9b72f982df40465296 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Sat, 28 Aug 2021 16:34:47 -0800 Subject: [PATCH] add docs string --- mealie/services/recipe/recipe_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mealie/services/recipe/recipe_service.py b/mealie/services/recipe/recipe_service.py index 4f28d636da0f..b0924d4f4565 100644 --- a/mealie/services/recipe/recipe_service.py +++ b/mealie/services/recipe/recipe_service.py @@ -177,7 +177,8 @@ class RecipeService: def _create_event(self, title: str, message: str) -> None: self.background_tasks.add_task(create_recipe_event, title, message, self.session) - def _check_assets(self, original_slug) -> None: + def _check_assets(self, original_slug: str) -> None: + """Checks if the recipe slug has changed, and if so moves the assets to a new file with the new slug.""" if original_slug != self.recipe.slug: current_dir = self.app_dirs.RECIPE_DATA_DIR.joinpath(original_slug)