mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
better error msg
This commit is contained in:
parent
23462df49c
commit
b79eb9a969
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user