llm_codes_import_to_es

This commit is contained in:
hsafaei
2025-09-30 16:40:11 +03:30
parent 8bc0fde102
commit 372251aff7
9 changed files with 402 additions and 170 deletions
+16
View File
@@ -40,6 +40,22 @@ class JSONEncoder(json.JSONEncoder):
return json.JSONEncoder.default(self, obj)
##--------------------------------
# لازم است این فیلد پرشود تا مجلس بتواند دسترسی تغییر داشته باشد
##------------------------------------
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 isNeedHtml(html):
if "<TABLE" in html or "<table" in html or "</TR" in html or "</tr" in html :
return True