diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-08-20 09:45:28 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-08-20 09:45:28 +0300 |
commit | a30a2b9ef9503292d35f315cf7ae8a798db9232a (patch) | |
tree | f367426d088b4d2eecfa4045522450cac7069e5d | |
parent | e19549782957088f30ec0df6737e54f564192653 (diff) | |
download | troggle-a30a2b9ef9503292d35f315cf7ae8a798db9232a.tar.gz troggle-a30a2b9ef9503292d35f315cf7ae8a798db9232a.tar.bz2 troggle-a30a2b9ef9503292d35f315cf7ae8a798db9232a.zip |
bugfix
-rw-r--r-- | core/views/uploads.py | 4 |
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 = "" |