forked from expo/troggle
fix bug for wallet with empty fpath
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user