Commit 15ecfcec by 黄静

hj

parent 2f66a4cd
...@@ -42,7 +42,10 @@ class RiskComputer: ...@@ -42,7 +42,10 @@ class RiskComputer:
else: else:
if flag: if flag:
ret1 = ic.finance_Compute(indexItem) ret1 = ic.finance_Compute(indexItem)
ret = float('%.2f' % ret1) if ret1 == "—":
ret = "—"
else:
ret = float('%.2f' % ret1)
else: else:
ret = "—" ret = "—"
a=indexItem.Name a=indexItem.Name
......
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