diff options
Diffstat (limited to 'core/views')
-rw-r--r-- | core/views/scans.py | 4 | ||||
-rw-r--r-- | core/views/uploads.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/views/scans.py b/core/views/scans.py index 1b9ab95..50e7209 100644 --- a/core/views/scans.py +++ b/core/views/scans.py @@ -208,8 +208,8 @@ def cavewallets(request, caveid): wallets.add(z) else: wurl = f"/scanupload/{z.walletname.replace('#',':')}" - print(f' - Unrecognised cave name \'{zcaveid}\' in {z.walletname}') - message = f" ! In {z.walletname} there is an unrecognised cave name '{zcaveid}'" + print(f' - Unrecognised cave name \'{zcaveid}\' in {z.walletname} (out of {len(Gcavelookup):,} cave names') + message = f" ! In {z.walletname} there is an unrecognised cave name '{zcaveid}' (out of {len(Gcavelookup):,} cave names" DataIssue.objects.update_or_create(parser='scans', message=message, url=wurl) manywallets = list(set(wallets)) diff --git a/core/views/uploads.py b/core/views/uploads.py index 676c554..7e25980 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -208,7 +208,7 @@ def get_complaints(complaints, waldata, svxfiles, files, wallet, wurl): if not waldata["description written"]: complaints.append("The guidebook description needs writing into the survex file. Tick the 'Cave description written' checkbox when this is done.") # QMs - if not waldata["qms written"] and int(w.year()) >= 2015: + if not waldata["qms written"] and w.year() and int(w.year()) >= 2015: complaints.append("The QMs needs writing into the survex file. Tick the 'QMs written' checkbox when this is done.") # Website |