majles_codes_update
This commit is contained in:
+8
-5
@@ -16,8 +16,8 @@ from app.temp_refactor_gn_dataset import *
|
||||
load_dotenv(dotenv_path="config.env")
|
||||
|
||||
|
||||
host = os.getenv("HOST_160")
|
||||
password = os.getenv("HOST_160_PASS")
|
||||
# host = os.getenv("HOST_160")
|
||||
# password = os.getenv("HOST_160_PASS")
|
||||
|
||||
# host=os.getenv('HOST_112')
|
||||
# password=os.getenv('HOST_112_PASS')
|
||||
@@ -37,8 +37,8 @@ password = os.getenv("HOST_160_PASS")
|
||||
# host=os.getenv('HOST_80')
|
||||
# password=os.getenv('HOST_80_PASS')
|
||||
|
||||
# host=os.getenv('HOST_133')
|
||||
# password=os.getenv('HOST_133_PASS')
|
||||
host=os.getenv('HOST_133')
|
||||
password=os.getenv('HOST_133_PASS')
|
||||
|
||||
|
||||
print(host)
|
||||
@@ -47,8 +47,11 @@ print(host)
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
|
||||
# elastic.removeCustomFileds("mj_qa_section", ["tcode","nlp_parser","content_normal","tcode_mains","tcode_subs", "ners_v1", "level", "code-ai"])
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_mashruh")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/113", "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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user