Merge branch 'develop' of https://github.com/TandoorRecipes/recipes into develop

This commit is contained in:
vabene1111
2023-12-16 08:09:22 +01:00
5 changed files with 40 additions and 18 deletions

View File

@@ -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})