llm_codes_import_to_es
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user