Commit 07dbafd0 by dong

fix20221209

parent d652d3a7
......@@ -17,16 +17,17 @@ from apps import db, constants, redis_store
# 获取左上角经济指标数据
def get_jjzb(district, year):
'''经济指标数据'''
# year1 = datetime.now().year - 1
year1 = '2022年1-11月'
year1 = datetime.now().year - 1
year2 = datetime.now().year
years = ''
if year == year1:
years = str(year) + '年'
if year == year2:
month = datetime.now().month
years = str(year) + '年1-' + str(month) + '月'
# month = datetime.now().month
# years = str(year) + '年1-' + str(month) + '月'
years = '2022年1-11月'
try:
if not district or district == '晋城市':
datas = City.query.filter_by(area='晋城市', year=year).first()
......
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