2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-18 14:27:06 +00:00

Wallet edit now using refactored git add/commit system

This commit is contained in:
2024-12-29 19:35:20 +00:00
parent a3c7f165b9
commit e3a9498656
3 changed files with 34 additions and 75 deletions

View File

@@ -12,7 +12,7 @@ todo - update the survexblock scanswallet field to refer to the wallet, if it is
But we can't do that, we only have the survexfile, not the blcok. But we could set it for ALL the blocks? Hmm.
"""
contentsjson = "contents.json"
CONTENTSJSON = "contents.json"
git = settings.GIT
@@ -160,7 +160,7 @@ def load_all_scans():
for yeardir in contents_path.iterdir():
if yeardir.is_dir():
for walletpath in yeardir.iterdir():
if Path(walletpath, contentsjson).is_file():
if Path(walletpath, CONTENTSJSON).is_file():
walletname = walletpath.name
if walletname not in wallets: