Commit 543e9273 authored by pengxiong's avatar pengxiong

个基点评

parent 6b12d013
...@@ -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
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