summaryrefslogtreecommitdiffstats
path: root/parsers
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-10-03 21:18:35 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-10-03 21:18:35 +0300
commitc8163ab0cd08682eae783544b69f31755b85857f (patch)
tree2094289077966e2be28974e863bda803e965ffdb /parsers
parent4495be2083e252802ce9c309b162bab27181ed0f (diff)
downloadtroggle-c8163ab0cd08682eae783544b69f31755b85857f.tar.gz
troggle-c8163ab0cd08682eae783544b69f31755b85857f.tar.bz2
troggle-c8163ab0cd08682eae783544b69f31755b85857f.zip
fix bug for wallet with empty fpath
Diffstat (limited to 'parsers')
-rw-r--r--parsers/scans.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/parsers/scans.py b/parsers/scans.py
index 9cbeeab..272a78f 100644
--- a/parsers/scans.py
+++ b/parsers/scans.py
@@ -126,7 +126,8 @@ def load_all_scans():
print("\n ", end='')
print(f"{walletname} ", end='')
- wallet, created = Wallet.objects.update_or_create(walletname=walletname)
+ fpath = Path(settings.SCANS_ROOT, str(yeardir.stem), walletname)
+ wallet, created = Wallet.objects.update_or_create(walletname=walletname, fpath=fpath)
wallets[walletname] = wallet
# could now also load the json and use it. check &ref is correct or missing too..
if not created: