From e38d29f33d8924679c7d393fbebbcc927d751b1f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 31 Jan 2023 20:52:22 +0000 Subject: [PATCH] menu change to go to latest blank wallet --- core/views/wallets.py | 3 --- templates/base.html | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/views/wallets.py b/core/views/wallets.py index 5484e0a..738c2cb 100644 --- a/core/views/wallets.py +++ b/core/views/wallets.py @@ -274,7 +274,6 @@ def walletedit(request, path=None): def get_next_empty(): latest = Wallet.objects.filter(walletname__startswith="20").latest('walletname') - print(f"Latest {latest=}") next = int(latest.walletname[5:]) + 1 return f"{latest.walletname[:4]}:{next:02d}" @@ -293,7 +292,6 @@ def walletedit(request, path=None): return (oldwallet(request, path), None) except: # if nonumeric wpath name for example - raise return (oldwallet(request, path), None) if not re.match("(19|20)\d\d[:#]\d\d\d?", wpath): @@ -443,7 +441,6 @@ def walletedit(request, path=None): redirect, wallet = preprocess_path(path) if redirect: return redirect - print(f"{wallet=}") next, nexty, prev, prevy, year = create_nav_links(wallet) wurl = f"/walletedit/{wallet}".replace("#", ":") diff --git a/templates/base.html b/templates/base.html index 4c07b0b..377fa24 100644 --- a/templates/base.html +++ b/templates/base.html @@ -32,7 +32,7 @@ Survex | All Survex | Scans | - Upload Scans | + Upload Scans | Drawings | Upload Drawings | Upload Photos |