diff options
Diffstat (limited to 'core/views_survex.py')
-rw-r--r-- | core/views_survex.py | 3 |
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})
|