Skip to content

Commit f738b0f

Browse files
authored
Update ws_api/wealthsimple_api.py
1 parent 4824f2b commit f738b0f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ws_api/wealthsimple_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ def _activity_add_description(self, act):
495495
f"Subdivision: {held_shares} -> {total_shares} shares of {act['assetSymbol']}"
496496
)
497497
else:
498-
act['description'] = f"Subdivision: Received {act['amount']} shares of {act['assetSymbol']}"
498+
received_shares: float = float(act['amount'])
499+
act['description'] = f"Subdivision: Received {received_shares} new shares of {act['assetSymbol']}"
499500

500501
elif act['type'] in ['DEPOSIT', 'WITHDRAWAL'] and act['subType'] in ['E_TRANSFER', 'E_TRANSFER_FUNDING']:
501502
direction = 'from' if act['type'] == 'DEPOSIT' else 'to'

0 commit comments

Comments
 (0)