Skip to content

Commit

Permalink
Merge pull request #2802 from smilerz/automation_fixes
Browse files Browse the repository at this point in the history
kw automation not applying during url import
  • Loading branch information
vabene1111 authored Dec 16, 2023
2 parents 04b4f55 + ba5112e commit 44d1cc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/helper/recipe_url_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 44d1cc3

Please sign in to comment.