From ba5112e138ce2f77fb076f02627485c2aff0213f Mon Sep 17 00:00:00 2001 From: smilerz Date: Tue, 12 Dec 2023 13:49:23 -0600 Subject: [PATCH] kw automation not applying during url import --- cookbook/helper/recipe_url_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index fbbc23c9cd..416bb54a11 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -415,8 +415,8 @@ def parse_keywords(keyword_json, request): # if alias exists use that instead if len(kw) != 0: - automation_engine.apply_keyword_automation(kw) - if k := Keyword.objects.filter(name=kw, space=request.space).first(): + kw = automation_engine.apply_keyword_automation(kw) + if k := Keyword.objects.filter(name__iexact=kw, space=request.space).first(): keywords.append({'label': str(k), 'name': k.name, 'id': k.id}) else: keywords.append({'label': kw, 'name': kw})