procces refactor majles

This commit is contained in:
hsafaei
2025-10-27 12:54:04 +03:30
parent c80813aaa8
commit 498c3c4bd1
8 changed files with 1395 additions and 312 deletions
+7 -2
View File
@@ -1,5 +1,10 @@
import os
from dotenv import load_dotenv
import sys
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
from app.common.text_normalizer import TextNormalizer
# from general import *
@@ -43,7 +48,7 @@ path_base_map = "G:/Project2/gateway2_main/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_mashruh")
#elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section")
elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section")
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section.zip', 'mj_qa_section', 'majles', False, 'mj_qa_section')
# elastic.restorFileToElastic2('G:/Project2/111/gn_setting.zip', 'gn_setting', 'general', False, 'gn_setting')
@@ -59,7 +64,7 @@ elastic = ElasticHelper(host, password, "elastic", path_base_map)
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section-m1")
# elastic.createIndex( 'mj_qa_section-m1', 'majles', 'mj_qa_section')
# elastic.restorFileToElastic2('G:/Project2/111/server112/mj_qa_section-m1.zip', 'mj_qa_section-m1', 'majles', False, 'mj_qa_section')
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section-m1.zip', 'mj_qa_section-m1', 'majles', False, 'mj_qa_section')
# elastic.backupIndexToZipfile("G:/Project2/111", "gn_calendar")
# elastic.createIndex( 'gn_calendar', 'general', 'gn_calendar')