From e4b9497eb5230698faa04571909e20e7e7ec9d8c Mon Sep 17 00:00:00 2001 From: Xavier Fiechter Date: Fri, 29 Nov 2024 17:45:22 +0100 Subject: [PATCH] . --- django/finances/electrum.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/finances/electrum.py b/django/finances/electrum.py index ea417fc..23dccad 100644 --- a/django/finances/electrum.py +++ b/django/finances/electrum.py @@ -55,7 +55,7 @@ def is_valid_output_ref(ref): return False -def checkup_label(label_id, loop): +def checkup_label(label_id, loop): if label_id and loop: try: elem = Label.objects.get(id=label_id) @@ -102,7 +102,7 @@ def checkup_label(label_id, loop): logger.debug(f"Transaction {txid} fetched with blocktime {blocktime}") if blocktime: output.confirmed_at_block_time = blocktime - output.confirmed_at_block_height = txn.get('height', 0) + HistoricalPrice.get_or_create_from_api(None, timestamp=blocktime) # Fetch all unspents for the address try: