This commit is contained in:
Philip Sargent 2022-08-20 09:45:28 +03:00
parent e195497829
commit a30a2b9ef9

View File

@ -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 = ""