Commit ff04c622 authored by 李宗熹's avatar 李宗熹

修改默认值

parent bc4c6da5
...@@ -1105,8 +1105,9 @@ class PortfolioDiagnose(object): ...@@ -1105,8 +1105,9 @@ class PortfolioDiagnose(object):
except Exception: except Exception:
pass pass
evaluation_dict = {'name': fund_name, 'data': ret}
if objective: if objective:
evaluation_dict = {'name': fund_name, 'data': ret}
if fund_id in self.abandon_fund_score + self.abandon_fund_corr: if fund_id in self.abandon_fund_score + self.abandon_fund_corr:
evaluation_dict['status'] = "换仓" evaluation_dict['status'] = "换仓"
elif fund_id in self.portfolio: elif fund_id in self.portfolio:
...@@ -1126,8 +1127,6 @@ class PortfolioDiagnose(object): ...@@ -1126,8 +1127,6 @@ class PortfolioDiagnose(object):
repr(e) repr(e)
return None return None
def propose_fund_evaluation(self, ): def propose_fund_evaluation(self, ):
try: try:
result = [] result = []
......
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