1
0

add labels to lightning history

This commit is contained in:
ThomasV
2019-05-06 16:52:25 +02:00
parent c4081284bd
commit e53ecb9b77
4 changed files with 20 additions and 12 deletions

View File

@@ -144,11 +144,7 @@ class RequestList(MyTreeView):
lnaddr = lndecode(invoice, expected_hrp=constants.net.SEGWIT_HRP)
amount_sat = lnaddr.amount*COIN if lnaddr.amount else None
amount_str = self.parent.format_amount(amount_sat) if amount_sat else ''
description = ''
for k,v in lnaddr.tags:
if k == 'd':
description = v
break
description = lnaddr.get_description()
date = format_time(lnaddr.date)
labels = [date, description, amount_str, pr_tooltips.get(status,'')]
items = [QStandardItem(e) for e in labels]