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
a5b53456
Commit
a5b53456
authored
Dec 10, 2020
by
pengxiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://47.100.44.39:10001/pengxiong/fund_report
into dev
parents
40a4da53
ecafdf4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
jinjia2html_v2.py
app/utils/jinjia2html_v2.py
+9
-7
No files found.
app/utils/jinjia2html_v2.py
View file @
a5b53456
...
...
@@ -125,13 +125,15 @@ class DataIntegrate:
"""个基点评."""
single_fund_data_list
=
[]
portfolio_evaluation
=
portfolio_diagnose
.
old_portfolio_evaluation
()
# radar_chart_data = portfolio_diagnose.single_fund_radar()
# with futures.ProcessPoolExecutor(os.cpu_count()) as executor:
# res = executor.map(gen_radar_chart, radar_chart_data)
index_compare_chart_data
=
portfolio_diagnose
.
original_fund_index_compare
(
self
.
user_customer
.
fund_cnav_total
)
with
futures
.
ProcessPoolExecutor
(
os
.
cpu_count
())
as
executor
:
res
=
executor
.
map
(
draw_index_combination_chart
,
index_compare_chart_data
)
res
=
list
(
res
)
# with futures.ProcessPoolExecutor(os.cpu_count()) as executor:
# res = executor.map(draw_index_combination_chart, index_compare_chart_data)
# res = list(res)
res
=
[]
for
chart_data
in
index_compare_chart_data
:
r
=
draw_index_combination_chart
(
chart_data
)
res
.
append
(
r
)
for
i
in
range
(
len
(
portfolio_evaluation
)):
if
portfolio_evaluation
[
i
][
'status'
]
==
'保留'
:
portfolio_evaluation
[
i
][
'status'
]
=
'<div class="self_type fl">保留</div>'
...
...
@@ -250,7 +252,7 @@ class DataIntegrate:
'month'
:
self
.
user_customer
.
month_start_date
.
strftime
(
"
%
m"
),
'start_date'
:
self
.
user_customer
.
start_date
.
strftime
(
"
%
Y-
%
m-
%
d"
),
'latest_worth_day'
:
self
.
user_customer
.
last_nav_date
,
'brand_name'
:
'
小飞象<br>工作室
'
,
'brand_name'
:
'
资产管<br>理中心
'
,
'customer_old'
:
42
,
'customer_level'
:
'平衡型'
,
# 综述数据
...
...
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