From fd8752b2985ca83cbed78f9305180299baf7eaa1 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 7 Nov 2021 22:19:46 +0100 Subject: [PATCH] fixed nextcloud image import --- cookbook/integration/nextcloud_cookbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/integration/nextcloud_cookbook.py b/cookbook/integration/nextcloud_cookbook.py index 1a44a39e6..96e2dadb9 100644 --- a/cookbook/integration/nextcloud_cookbook.py +++ b/cookbook/integration/nextcloud_cookbook.py @@ -53,7 +53,7 @@ class NextcloudCookbook(Integration): if '.zip' in f['name']: import_zip = ZipFile(f['file']) for z in import_zip.filelist: - if re.match(f'^Recipes/{recipe.name}/full.jpg$', z.filename): + if re.match(f'^{recipe.name}/full.jpg$', z.filename): self.import_recipe_image(recipe, BytesIO(import_zip.read(z.filename)), filetype=get_filetype(z.filename)) return recipe