Commit 184384d9 by dong

fix20221211

parent ddd237a4
...@@ -407,11 +407,17 @@ def export_jc_data1(data_time, path, pro_path): ...@@ -407,11 +407,17 @@ def export_jc_data1(data_time, path, pro_path):
# 2022年1-11月 # 2022年1-11月
current_year = data_time.split('年')[0] current_year = data_time.split('年')[0]
current_month = data_time.split('年')[1].split('月')[0] current_month = data_time.split('年')[1].split('月')[0]
if '-' in current_year:
current_month1 = current_month.split('-')[0] current_month1 = current_month.split('-')[0]
current_month2 = current_month.split('-')[1] current_month2 = current_month.split('-')[1]
current_year1 = current_year + '/' + current_month1 current_year1 = current_year + '/' + current_month1
current_year2 = current_year + '/' + current_month2 current_year2 = current_year + '/' + current_month2
else:
current_month1 = current_month
current_month2 = ''
current_year1 = current_year + '/' + current_month1
current_year2 = ''
district_li = ["全市", "城区", "泽州县", "高平市", "阳城县", "陵川县", district_li = ["全市", "城区", "泽州县", "高平市", "阳城县", "陵川县",
"沁水县", "晋城经济技术开发区"] "沁水县", "晋城经济技术开发区"]
# 六。综合得分 # 六。综合得分
...@@ -642,11 +648,16 @@ def export_jc_data2(data_time, path, pro_path): ...@@ -642,11 +648,16 @@ def export_jc_data2(data_time, path, pro_path):
# 2022年1-11月 # 2022年1-11月
current_year = data_time.split('年')[0] current_year = data_time.split('年')[0]
current_month = data_time.split('年')[1].split('月')[0] current_month = data_time.split('年')[1].split('月')[0]
if '-' in current_year:
current_month1 = current_month.split('-')[0] current_month1 = current_month.split('-')[0]
current_month2 = current_month.split('-')[1] current_month2 = current_month.split('-')[1]
current_year1 = current_year + '/' + current_month1 current_year1 = current_year + '/' + current_month1
current_year2 = current_year + '/' + current_month2 current_year2 = current_year + '/' + current_month2
else:
current_month1 = current_month
current_month2 = ''
current_year1 = current_year + '/' + current_month1
current_year2 = ''
target_data_list = [] target_data_list = []
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment