This commit is contained in:
2023-03-22 15:18:16 +00:00
parent ad48851118
commit 5f46d8fdc5
2 changed files with 6 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ from troggle.core.models.survex import SurvexBlock, SurvexFile, SurvexPersonRole
from troggle.core.models.troggle import DataIssue, Expedition
from troggle.core.models.wallets import Wallet, YEAR_RANGE
from troggle.core.views.auth import login_required_if_public
from troggle.core.views.caves import getCave
from troggle.core.views.scans import caveifywallet, oldwallet
from troggle.core.views.uploads import FilesForm
@@ -39,7 +40,7 @@ todo = """
- Refactor walletedit() as it contains all the wallets 'complaints' code from the pre-2022
script 'wallets.py'
- Need to validate uploaded file as being a valid image file, not a dubious script or hack
- We should validate uploaded file as being a valid image file, not a dubious script or hack?
"""
WALLET_BLANK_JSON = {
"cave": "",
@@ -851,10 +852,12 @@ def walletedit(request, path=None):
else:
svxothers = None
trips = None
wallets = None
else:
svxothers = None
trips = None
wallets = None
# Survex and survex complaints, comes from json file on disc, not as pre-populated as above
complaints, caveobject = get_complaints([], waldata, svxfiles, files, wallet, wurl)