Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
d5fc3785
Commit
d5fc3785
authored
Dec 08, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多进程优化
parent
11f5ac90
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
jinjia2html.py
app/utils/jinjia2html.py
+4
-1
No files found.
app/utils/jinjia2html.py
View file @
d5fc3785
...
...
@@ -94,6 +94,9 @@ class DataIntegrate:
self
.
single_fund_data_list
=
[]
portfolio_evaluation
=
self
.
portfolio_diagnose
.
old_portfolio_evaluation
()
radar_chart_data
=
self
.
portfolio_diagnose
.
single_fund_radar
()
with
futures
.
ProcessPoolExecutor
(
os
.
cpu_count
())
as
executor
:
res
=
executor
.
map
(
gen_radar_chart
,
radar_chart_data
)
res
=
list
(
res
)
for
i
in
range
(
len
(
portfolio_evaluation
)):
if
portfolio_evaluation
[
i
][
'status'
]
==
'保留'
:
portfolio_evaluation
[
i
][
'status'
]
=
'<div class="self_type fl">保留</div>'
...
...
@@ -107,7 +110,7 @@ class DataIntegrate:
'fund_name'
:
portfolio_evaluation
[
i
][
'name'
],
'status'
:
portfolio_evaluation
[
i
][
'status'
],
'evaluation'
:
portfolio_evaluation
[
i
][
'data'
],
'radar_chart_path'
:
gen_radar_chart
(
radar_chart_data
[
i
])
'radar_chart_path'
:
res
[
i
]
})
def
get_old_compare_pic
(
self
):
...
...
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