summaryrefslogtreecommitdiffstats
path: root/core/views/uploads.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-08-20 09:45:28 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-08-20 09:45:28 +0300
commita30a2b9ef9503292d35f315cf7ae8a798db9232a (patch)
treef367426d088b4d2eecfa4045522450cac7069e5d /core/views/uploads.py
parente19549782957088f30ec0df6737e54f564192653 (diff)
downloadtroggle-a30a2b9ef9503292d35f315cf7ae8a798db9232a.tar.gz
troggle-a30a2b9ef9503292d35f315cf7ae8a798db9232a.tar.bz2
troggle-a30a2b9ef9503292d35f315cf7ae8a798db9232a.zip
bugfix
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r--core/views/uploads.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index 02d8c1e..ee1f48a 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -274,10 +274,10 @@ def scanupload(request, path=None):
comment = f"on dev machine '{socket.gethostname()}' "
else:
comment = ""
- if waldata["cave"]:
+ if "cave" in waldata:
label = waldata["cave"]
else:
- if waldata["name"]:
+ if "name" in waldata:
label = waldata["name"]
else:
label = ""