From b9597a33334ffec97fb87d589aa71d4506968471 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Tue, 22 Feb 2022 21:21:25 +0100 Subject: [PATCH] fixed keyword names including labels during import --- cookbook/helper/recipe_url_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index a87f8b7d7..a96a2bd46 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -334,7 +334,7 @@ def parse_keywords(keyword_json, space): kw = normalize_string(kw) if len(kw) != 0: if k := Keyword.objects.filter(name=kw, space=space).first(): - keywords.append({'id': str(k.id), 'text': str(k)}) + keywords.append({'id': str(k.id), 'text': str(k.name)}) else: keywords.append({'id': random.randrange(1111111, 9999999, 1), 'text': kw})