mirror of
https://github.com/cryptosharks131/lndg.git
synced 2026-08-13 12:33:04 +02:00
invoice reindex use hex
This commit is contained in:
parent
564156029c
commit
7f85763eba
1 changed files with 2 additions and 2 deletions
4
jobs.py
4
jobs.py
|
|
@ -177,11 +177,11 @@ def update_invoices(stub):
|
|||
invoices = resp.invoices
|
||||
for i in invoices:
|
||||
try:
|
||||
db_invoice = Invoices.objects.get(r_hash=i.r_hash)
|
||||
db_invoice = Invoices.objects.get(r_hash=i.r_hash.hex())
|
||||
db_invoice.index = i.add_index
|
||||
db_invoice.save()
|
||||
except Invoices.DoesNotExist:
|
||||
logger.warning(f'Invoice not found during reindex: {i.r_hash}')
|
||||
logger.warning(f'Invoice not found during reindex: {i.r_hash.hex()}')
|
||||
index_offset = resp.last_index_offset
|
||||
if len(invoices) < page_size:
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue