diff --git a/dags/company/company/fill_company_comm.py b/dags/company/company/fill_company_comm.py index 1c33890..8c8c4af 100644 --- a/dags/company/company/fill_company_comm.py +++ b/dags/company/company/fill_company_comm.py @@ -22,8 +22,8 @@ def sync(province): index="didata_company", body={"index": {"refresh_interval": "-1"}} ) - #ids = DIDATA_DEV_ELASTIC_CLIENT.scan_by_sql_to_data_frame(f"select company_name, committee from didata_company where province='{province}'") - ids = pd.DataFrame({}) + ids = DIDATA_DEV_ELASTIC_CLIENT.scan_by_sql_to_data_frame(f"select company_name, committee from didata_company where province='{province}'") + #ids = pd.DataFrame({}) if len(ids) > 0: company_ids = ids['_id'].to_list() else: @@ -104,8 +104,5 @@ if __name__ == '__main__': flag = False # for province in areautils.get_all_province(): # print(province) - for province in areautils.get_all_province(): - if '甘肃省' == province: - flag = True - if flag: - sync(province) \ No newline at end of file + # for province in areautils.get_all_province(): + # sync(province) \ No newline at end of file