summaryrefslogtreecommitdiffstats
path: root/core/views/survex.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-03-21 14:29:15 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-03-21 14:29:15 +0000
commit435f3cf00b1291eee5f3fef61ce40db7851a43ec (patch)
tree71953c0ef01bd3e1712b8cac005eca3eccd18b3e /core/views/survex.py
parent7caf1690c62bd43f9eb3462a89d0631cba7298b0 (diff)
downloadtroggle-435f3cf00b1291eee5f3fef61ce40db7851a43ec.tar.gz
troggle-435f3cf00b1291eee5f3fef61ce40db7851a43ec.tar.bz2
troggle-435f3cf00b1291eee5f3fef61ce40db7851a43ec.zip
fixed url glitch, added parent url
Diffstat (limited to 'core/views/survex.py')
-rw-r--r--core/views/survex.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/core/views/survex.py b/core/views/survex.py
index 45d63ea..d98c091 100644
--- a/core/views/survex.py
+++ b/core/views/survex.py
@@ -281,6 +281,11 @@ def svx(request, survex_file):
Needs refactoring. Too many piecemeal edits and odd state dependencies.
"""
warning = False
+
+ print(survex_file)
+ if survex_file.lower().endswith(".svx"):
+ 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..
@@ -382,7 +387,7 @@ def svx(request, survex_file):
"settings": settings,
"warning": warning,
"has_3d": has_3d,
- "title": survex_file,
+ "survexfile": svxfile,
"svxlength": svxlength,
"svxblocks": svxblocks,
"svxincludes": svxincludes,