From 015e01afb98f74106a017967d85484bd9131c59f Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Thu, 8 Apr 2021 21:01:07 +0200 Subject: [PATCH] cheftap importer improvement --- cookbook/integration/cheftap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/integration/cheftap.py b/cookbook/integration/cheftap.py index 0e51c1e1..095ba103 100644 --- a/cookbook/integration/cheftap.py +++ b/cookbook/integration/cheftap.py @@ -11,7 +11,7 @@ class ChefTap(Integration): def import_file_name_filter(self, zip_info_object): print("testing", zip_info_object.filename) - return re.match(r'^cheftap_export/([A-Za-z\d\w\s-])+.txt$', zip_info_object.filename) + return re.match(r'^cheftap_export/([A-Za-z\d\w\s-])+.txt$', zip_info_object.filename) or re.match(r'^([A-Za-z\d\w\s-])+.txt$', zip_info_object.filename) def get_recipe_from_file(self, file): source_url = ''