Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mancheng
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mancheng
Commits
f7694656
Commit
f7694656
authored
Jul 12, 2023
by
dong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix20230712
parent
40d16fe8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
apps/view_index/view.py
+4
-2
No files found.
apps/view_index/view.py
View file @
f7694656
...
@@ -74,7 +74,8 @@ def get_jjzb(district, flag):
...
@@ -74,7 +74,8 @@ def get_jjzb(district, flag):
"people_out"
:
'
%.2
f元'
%
datas
.
people_out
if
datas
.
people_out
else
"-元"
,
# 居民人均可支配收入
"people_out"
:
'
%.2
f元'
%
datas
.
people_out
if
datas
.
people_out
else
"-元"
,
# 居民人均可支配收入
"people_per"
:
'
%.2
f'
%
datas
.
people_per
if
datas
.
people_per
else
"-"
,
"people_per"
:
'
%.2
f'
%
datas
.
people_per
if
datas
.
people_per
else
"-"
,
"question"
:
datas
.
question
,
"question"
:
datas
.
question
,
"year"
:
str
(
datas
.
year
)
+
'年'
if
flag
==
1
else
datas
.
question
# "year": str(datas.year) + '年' if flag == 1 else datas.question
"year"
:
datas
.
question
}
# 居民消费价格指数
}
# 居民消费价格指数
else
:
else
:
df_dic
=
{
"GDP"
:
''
,
# 地区生产总值
df_dic
=
{
"GDP"
:
''
,
# 地区生产总值
...
@@ -86,7 +87,8 @@ def get_jjzb(district, flag):
...
@@ -86,7 +87,8 @@ def get_jjzb(district, flag):
"people_out"
:
''
,
# 居民人均可支配收入
"people_out"
:
''
,
# 居民人均可支配收入
"people_per"
:
''
,
"people_per"
:
''
,
"question"
:
''
,
"question"
:
''
,
"year"
:
str
(
datas
.
year
)
+
'年'
if
flag
==
1
else
datas
.
question
# "year": str(datas.year) + '年' if flag == 1 else datas.question
"year"
:
datas
.
question
}
# 居民消费价格指数
}
# 居民消费价格指数
return
df_dic
return
df_dic
except
Exception
as
e
:
except
Exception
as
e
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment