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
543e9273
Commit
543e9273
authored
Jan 19, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个基点评
parent
6b12d013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
fund_service.py
app/service/fund_service.py
+1
-8
No files found.
app/service/fund_service.py
View file @
543e9273
...
@@ -153,7 +153,7 @@ def single_evaluation(fund_id, invest_type=2, index_id='000905.SH'):
...
@@ -153,7 +153,7 @@ def single_evaluation(fund_id, invest_type=2, index_id='000905.SH'):
ret
.
append
(
single_sentence
)
ret
.
append
(
single_sentence
)
i
+=
1
i
+=
1
evaluation_dict
=
{
'fund_name'
:
fund_name
,
'status'
:
''
,
'evaluation'
:
ret
,
'radar_chart_path'
:
fund_index_compare
(
fund_id
=
fund_id
)}
evaluation_dict
=
{
'fund_name'
:
fund_name
,
'status'
:
''
,
'evaluation'
:
ret
,
'radar_chart_path'
:
fund_index_compare
(
fund_id
=
fund_id
,
invest_type
=
invest_type
)}
# if objective:
# if objective:
# if fund_id in self.abandon_fund_score + self.abandon_fund_corr:
# if fund_id in self.abandon_fund_score + self.abandon_fund_corr:
...
@@ -186,12 +186,5 @@ def fund_index_compare(fund_id, invest_type=2, index_id='000905.SH'):
...
@@ -186,12 +186,5 @@ def fund_index_compare(fund_id, invest_type=2, index_id='000905.SH'):
return
r
return
r
def
get_fund_evaluation
(
args
):
"""返回个基点评和雷达图"""
fund_id
=
args
.
get
(
'fund_id'
)
invest_type
=
args
.
get
(
'invest_type'
)
print
(
single_evaluation
(
fund_id
=
'HF00005AFK'
))
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
(
single_evaluation
(
fund_id
=
'HF00005AFK'
))
print
(
single_evaluation
(
fund_id
=
'HF00005AFK'
))
\ No newline at end of file
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