llm_codes_import_to_es
This commit is contained in:
@@ -15,22 +15,6 @@ from app.common.general_functions import *
|
||||
from app.common.text_normalizer import TextNormalizer
|
||||
from app.common.elastic_helper import ElasticHelper
|
||||
|
||||
##--------------------------------
|
||||
# لازم است این فیلد پرشود تا مجلس بتواند دسترسی تغییر داشته باشد
|
||||
##------------------------------------
|
||||
def is_section_empty(section_path):
|
||||
filtered_keys = ['فصل','موخره','امضاء','عنوان']
|
||||
if '>' in section_path:
|
||||
path_parts = section_path.split('>')
|
||||
for key in filtered_keys:
|
||||
if key in path_parts[-1]:
|
||||
return True
|
||||
else:
|
||||
for key in filtered_keys:
|
||||
if key in section_path:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def repair_ai_codes( elastic, index_name_i, index_name_o, file_log) :
|
||||
body = {}
|
||||
|
||||
Reference in New Issue
Block a user