Нормализация данных, привидение к общему json

This commit is contained in:
zein
2025-11-18 03:37:47 +03:00
parent 768ab3c4ef
commit 8c53c35dec
2 changed files with 30 additions and 10 deletions

View File

@@ -54,6 +54,11 @@ def extract_tags_from_detailed_tags(main_container):
else:
tag_list = []
if label == 'Назначение': label = 'occasion'
elif label == 'Основной ингредиент': continue
elif label == 'Блюдо': label = 'type_dish'
elif label == 'География кухни': label = 'cuisine'
tags[label] = tag_list
return tags