diff --git a/packages/code-du-travail-data/search/indexing/cdtn_documents.py b/packages/code-du-travail-data/search/indexing/cdtn_documents.py index b2687bf29b..673cd0224b 100644 --- a/packages/code-du-travail-data/search/indexing/cdtn_documents.py +++ b/packages/code-du-travail-data/search/indexing/cdtn_documents.py @@ -166,25 +166,6 @@ def populate_cdtn_documents(): 'all_text': f"{val['question']} {faq_text} {theme} {branche}", }) - with open(os.path.join(settings.BASE_DIR, 'dataset/faq-conventions-collectives.json')) as json_data: - data = json.load(json_data) - logger.info("Load %s documents from faq-conventions-collectives.json", len(data)) - for val in data: - faq_text = strip_html(val['reponse']) - tags = parse_hash_tags(val.get("tags")) - theme = val.get('tags', {}).get('theme', '') - branche = val.get('tags', {}).get('branche', '') - CDTN_DOCUMENTS.append({ - 'source': 'faq', - 'slug': slugify(val['question'], to_lower=True), - 'text': faq_text, - 'html': val["reponse"], - 'title': val['question'], - 'tags': tags, - 'date': val['date_redaction'], - 'all_text': f"{val['question']} {faq_text} {theme} {branche}", - }) - with open(os.path.join(settings.BASE_DIR, 'dataset/export-courriers.json')) as json_data: data = json.load(json_data) logger.info("Load %s documents from export-courriers.json", len(data))