From 6e3fdd35c13508c0b767d83e35ee8b22ee3aea81 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 23 Sep 2022 23:43:34 +0300 Subject: Replaced maintenance headache with cleaner folder walking --- core/views/uploads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/views/uploads.py') 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 -- cgit v1.2.3