Skip to content

Commit

Permalink
chore: udpate print
Browse files Browse the repository at this point in the history
  • Loading branch information
jackluson committed Nov 8, 2022
1 parent d246dd0 commit a729b2c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/fund_info/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def get_base_info_ai(self):
self.total_asset = float(total_asset)
return self.total_asset
except ValueError:
print(total_asset, "not a number")
print("ai->", self.fund_code, total_asset, "not a number")

else:
pprint(res_json)
print('code:1', self.fund_code)
Expand Down Expand Up @@ -127,7 +128,7 @@ def get_base_info_zh(self):
self.total_asset = float(total_asset)
return self.total_asset
except ValueError:
print(total_asset, "not a number")
print("zh->", self.fund_code, total_asset, "not a number")
else:
pprint(res_json)
print('code:1', self.fund_code)
Expand Down Expand Up @@ -185,7 +186,7 @@ def get_base_info_from_danjuan(self):
elif(total_asset.endswith('亿')):
total_asset = float(total_asset[0:-1])
else:
print(self.fund_code, ":", total_asset, "not a number")
print("danjuan->", self.fund_code, total_asset, "not a number")
return
self.total_asset = total_asset
return self.total_asset
Expand Down

0 comments on commit a729b2c

Please sign in to comment.