forked from expo/troggle
fix broken upload form
This commit is contained in:
parent
97b0ce8c96
commit
9d56e467cd
@ -8,6 +8,7 @@ import datetime
|
||||
|
||||
from pathlib import Path
|
||||
from functools import reduce
|
||||
from urllib.parse import unquote
|
||||
|
||||
from django import forms
|
||||
|
||||
@ -207,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"]:
|
||||
if not waldata["qms written"] 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
|
||||
@ -359,8 +360,9 @@ def scanupload(request, path=None):
|
||||
|
||||
year = wallet[:4]
|
||||
try:
|
||||
if wallet[4]!= "#":
|
||||
#print(f'! - FORM scanupload - start {wallet} REDIRECT TO OLDWALLET')
|
||||
if wallet[4] != "#" and wallet[4] != ":":
|
||||
# print(f'! - FORM scanupload - {wallet[4]} unurlencoded {unquote(wallet)[4]}')
|
||||
# print(f'! - FORM scanupload - start {wallet} REDIRECT TO OLDWALLET')
|
||||
return(oldwallet(request, path))
|
||||
except:
|
||||
# if nonumeric wallet name for example
|
||||
|
Loading…
Reference in New Issue
Block a user