From 18a8fcbfb545fb01f3654ff1811f54f7fad582b8 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 5 Feb 2024 22:16:51 +0000 Subject: restore crash to try to debug --- core/views/uploads.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/views/uploads.py') diff --git a/core/views/uploads.py b/core/views/uploads.py index 5fa7d3b..dd5d25d 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -193,7 +193,8 @@ def logbookedit(request, year=None, slug=None): else: year = slug[0:4] try: - year = str(int(year)) + year = str(int(year)) # but maybe slug was hand-edited to be a future year.. + year = validate_year(year) # so fix that except: year = current_expo() -- cgit v1.2.3