refactor auto import

This commit is contained in:
hsafaei
2025-01-18 15:32:25 +03:30
parent a5da45d7a5
commit c1ef81c632
31 changed files with 1613 additions and 1123 deletions
+3 -2
View File
@@ -56,6 +56,7 @@ def import_law_reg_qanon_to_elastic(cursor):
cursor.execute(query)
text_normal = TextNormalizer()
url = BASE_URL + "repo/majles/qaqanon/multi/add"
@@ -80,7 +81,7 @@ def import_law_reg_qanon_to_elastic(cursor):
# print(row.sectionId)
title = normalYehKe( row.title )
title = text_normal.normalize_qanon( row.title )
title_type = getTitleType(title)
eid='qq'+ str(row.Id)
@@ -127,7 +128,7 @@ def import_law_reg_qanon_to_elastic(cursor):
qanon_etebar = ''
if row.qanon_etebar :
qanon_etebar = row.qanon_etebar
qanon_etebar = normalYehKe(row.qanon_etebar)
data={