From 57c4732566b0faad1ba35e3f7cdfd9693d65f54f Mon Sep 17 00:00:00 2001
From: Expo on server <expo@expo.survex.com>
Date: Thu, 25 Aug 2022 03:31:54 +0100
Subject: [PATCH] Fix erroring code in core/views/caves.py

---
 core/views/caves.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/views/caves.py b/core/views/caves.py
index 26ac87f..960d373 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -188,7 +188,7 @@ def file3d(request, cave, cave_id):
     # These if statements need refactoring more cleanly
     if cave.survex_file:
         #print(" -  cave.survex_file '{}'".format(cave.survex_file))
-        if threedpath.Pathis_file():
+        if threedpath.is_file():
             #print(" -  threedpath '{}'".format(threedpath))
             # possible error here as several .svx files of same names in different directories will overwrite in /3d/
             if survexpath.is_file():