summaryrefslogtreecommitdiffstats
path: root/core/models_caves.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/models_caves.py')
-rw-r--r--core/models_caves.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/models_caves.py b/core/models_caves.py
index 11aa24a..a6b44c7 100644
--- a/core/models_caves.py
+++ b/core/models_caves.py
@@ -203,11 +203,9 @@ class Cave(TroggleModel):
def getCaveByReference(reference):
areaname, code = reference.split("-", 1)
- #print(areaname, code)
area = Area.objects.get(short_name = areaname)
- #print(area)
foundCaves = list(Cave.objects.filter(area = area, kataster_number = code).all()) + list(Cave.objects.filter(area = area, unofficial_number = code).all())
- print((list(foundCaves)))
+ #print((list(foundCaves)))
if len(foundCaves) == 1:
return foundCaves[0]
else: