Commit 46920b0b by dong

fix20230201

parent cc0e44bb
......@@ -23,10 +23,10 @@ def show_area():
district_name = req_dic['district_name']
token = request.headers['token']
if not district_name:
district_name = get_district_name(token)
# if not district_name:
district_name = get_district_name(token)
area_data = [{"district_name": district_name}]
area_data = []
# 今年的1月1号
current_year = datetime.datetime.now().strftime('%Y-01-01 00:00:00')
# 今年今天的前一天凌晨
......@@ -201,7 +201,7 @@ def show_area():
"build_empty_rate": build_empty_rate,
# 闲置率
"current_build_empty_rate": total_empty_rate,
"build_rate": build_rate,
"build_rate": build_rate
})
except Exception as e:
current_app.logger.error(e)
......@@ -249,7 +249,7 @@ def month_rate():
token = request.headers['token']
# district_name = get_district_name(token, district_name)
district_name = get_district_name(token)
com = Common()
data_list = []
......
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