summaryrefslogtreecommitdiffstats
path: root/core/views_survex.py
diff options
context:
space:
mode:
authorgoatchurch <devnull@localhost>2009-08-05 11:58:36 +0100
committergoatchurch <devnull@localhost>2009-08-05 11:58:36 +0100
commitc66b5e2dadcc7a4b501b479c30f183c3bf81af42 (patch)
treed0b2e18968ddff6d06c1aaecdace6f498ea1b99a /core/views_survex.py
parent907746289386da6b6342752a0628742905a59a69 (diff)
downloadtroggle-c66b5e2dadcc7a4b501b479c30f183c3bf81af42.tar.gz
troggle-c66b5e2dadcc7a4b501b479c30f183c3bf81af42.tar.bz2
troggle-c66b5e2dadcc7a4b501b479c30f183c3bf81af42.zip
[svn] latest hacking for various statistics
Diffstat (limited to 'core/views_survex.py')
-rw-r--r--core/views_survex.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/views_survex.py b/core/views_survex.py
index d20e3f0..e1f2476 100644
--- a/core/views_survex.py
+++ b/core/views_survex.py
@@ -113,8 +113,7 @@ class SvxForm(forms.Form):
def svx(request, survex_file):
# get the basic data from the file given in the URL
dirname = os.path.split(survex_file)[0]
- if dirname:
- dirname += "/"
+ dirname += "/"
nowtime = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
outputtype = "normal"
form = SvxForm({'filename':survex_file, 'dirname':dirname, 'datetime':nowtime, 'outputtype':outputtype})