forked from expo/troggle
fixing bad splay detection
This commit is contained in:
@@ -350,6 +350,10 @@ def svx(request, survex_file):
|
||||
svxblocks = []
|
||||
try:
|
||||
svxblocksall = svxfile.survexblock_set.all()
|
||||
svxlength = 0.0
|
||||
for b in svxblocksall:
|
||||
svxlength += b.legslength
|
||||
print(svxlength,b)
|
||||
except AttributeError: # some survexfiles just *include files and have no blocks themselves
|
||||
svxblocksall = []
|
||||
else:
|
||||
@@ -366,6 +370,7 @@ def svx(request, survex_file):
|
||||
"warning": warning,
|
||||
"has_3d": (Path(survexdatasetpath) / Path(survex_file + ".3d")).is_file(),
|
||||
"title": survex_file,
|
||||
"svxlength": svxlength,
|
||||
"svxblocks": svxblocks,
|
||||
"svxincludes": svxincludes,
|
||||
"difflist": difflist,
|
||||
|
||||
Reference in New Issue
Block a user