File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -488,8 +488,11 @@ def _activity_add_description(self, act):
488488 held_activity = next ((activity for activity in child_activities if activity ['entitlementType' ] == 'HOLD' ), None )
489489 receive_activity = next ((activity for activity in child_activities if activity ['entitlementType' ] == 'RECEIVE' ), None )
490490 if held_activity and receive_activity :
491+ held_shares : float = float (held_activity ['quantity' ])
492+ received_shares : float = float (receive_activity ['quantity' ])
493+ total_shares : float = held_shares + received_shares
491494 act ['description' ] = (
492- f"Subdivision: { held_activity [ 'quantity' ] } -> { receive_activity [ 'quantity' ] } shares of { act ['assetSymbol' ]} "
495+ f"Subdivision: { held_shares } -> { total_shares } shares of { act ['assetSymbol' ]} "
493496 )
494497 else :
495498 act ['description' ] = f"Subdivision: Received { act ['amount' ]} shares of { act ['assetSymbol' ]} "
You can’t perform that action at this time.
0 commit comments