2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-26 01:01:53 +00:00

better error msg

This commit is contained in:
Philip Sargent 2022-07-19 19:18:42 +03:00
parent 23462df49c
commit b79eb9a969

View File

@ -507,7 +507,7 @@ def qm(request,cave_id,qm_id,year,grade=None, blockname=None):
if len(qmqs) > 1: if len(qmqs) > 1:
for q in qmqs: for q in qmqs:
print(qmqs) print(qmqs)
message = f'Multiple QMs with the same cave, year, number, grade AND first 8 chars of the survexblock name. Fix this in the survex file(s). {cave_id=} {year=} {qm_id=} {blockname=}' message = f'Multiple QMs with the same cave, year, number, grade AND first 8 chars of the survexblock name. (Could be caused by incomplete databasereset). Fix this in the survex file(s). {cave_id=} {year=} {qm_id=} {blockname=}'
return render(request,'errors/generic.html', {'message': message}) return render(request,'errors/generic.html', {'message': message})
else: else:
qm=qmqs.get(expoyear=year, blockname=blockname, number=qm_id, grade=grade) qm=qmqs.get(expoyear=year, blockname=blockname, number=qm_id, grade=grade)