mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 00:41:31 +00:00
swaps: fix group_label
This commit is contained in:
parent
9fd9703107
commit
782bfd06e5
1 changed files with 3 additions and 1 deletions
|
@ -295,7 +295,7 @@ class HistoryModel(CustomModel, Logger):
|
|||
child_data = dict(parent.get_data())
|
||||
node1 = HistoryNode(self, child_data)
|
||||
parent.addChild(node1)
|
||||
parent._data['label'] = tx_item.get('group_label')
|
||||
parent._data['label'] = child_data.get('group_label')
|
||||
parent._data['bc_value'] = child_data.get('bc_value', Satoshis(0))
|
||||
parent._data['ln_value'] = child_data.get('ln_value', Satoshis(0))
|
||||
# add child to parent
|
||||
|
@ -303,6 +303,8 @@ class HistoryModel(CustomModel, Logger):
|
|||
# update parent data
|
||||
parent._data['balance'] = tx_item['balance']
|
||||
parent._data['value'] += tx_item['value']
|
||||
if 'group_label' in tx_item:
|
||||
parent._data['label'] = tx_item['group_label']
|
||||
if 'bc_value' in tx_item:
|
||||
parent._data['bc_value'] += tx_item['bc_value']
|
||||
if 'ln_value' in tx_item:
|
||||
|
|
Loading…
Add table
Reference in a new issue