kw automation not applying during url import
This commit is contained in:
parent
c654cc469a
commit
ba5112e138
@ -415,8 +415,8 @@ def parse_keywords(keyword_json, request):
|
|||||||
# if alias exists use that instead
|
# if alias exists use that instead
|
||||||
|
|
||||||
if len(kw) != 0:
|
if len(kw) != 0:
|
||||||
automation_engine.apply_keyword_automation(kw)
|
kw = automation_engine.apply_keyword_automation(kw)
|
||||||
if k := Keyword.objects.filter(name=kw, space=request.space).first():
|
if k := Keyword.objects.filter(name__iexact=kw, space=request.space).first():
|
||||||
keywords.append({'label': str(k), 'name': k.name, 'id': k.id})
|
keywords.append({'label': str(k), 'name': k.name, 'id': k.id})
|
||||||
else:
|
else:
|
||||||
keywords.append({'label': kw, 'name': kw})
|
keywords.append({'label': kw, 'name': kw})
|
||||||
|
Loading…
Reference in New Issue
Block a user