2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-01 03:01:41 +00:00

stop print msg

This commit is contained in:
2026-02-09 14:48:36 +00:00
parent fe06448d38
commit 26c70cc8fa
2 changed files with 5 additions and 6 deletions

View File

@@ -339,7 +339,7 @@ def expopage(request, path):
return HttpResponse(content=content, content_type=content_type)
except IOError:
message = f" ! - 404 '{path=}' {request=}"
print(message)
#print(message)
DataIssue.objects.create(parser="view404", message=message)
return render(request, "pagenotfound.html", {"path": path}, status=404)

View File

@@ -245,12 +245,10 @@ def svx(request, survex_file):
"""
warning = False
print(f"svx(): {survex_file=}")
if survex_file.lower().endswith(".svx"):
#cope with ".svx.svx" bollox
survex_file = survex_file[:-4]
print(survex_file)
# get the basic data from the file given in the URL
dirname = os.path.split(survex_file)[0] # replace with proper pathlib function..
dirname += "/"
@@ -315,7 +313,8 @@ def svx(request, survex_file):
# GET, also fall-through after POST-specific handling
if svxfile := get_survexfile(survex_file):
print(f"svx(): a real SurvexFile object {svxfile=} {svxfile.id=}")
pass
# print(f"svx(): a real SurvexFile object {svxfile=} {svxfile.id=}")
if "code" not in form.data:
form.data["code"] = form.GetDiscCode()
@@ -349,7 +348,7 @@ def svx(request, survex_file):
svxblocksall = []
else:
svxfile = survex_file
print(f"svx(): NOT a real SurvexFile object '{svxfile=}'")
# print(f"svx(): NOT a real SurvexFile object '{svxfile=}'")
svxblocks = []
svxblocksall = []