mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 15:21:52 +00:00
notable caves fix
This commit is contained in:
parent
af136d3432
commit
33a485d207
@ -111,15 +111,14 @@ def getnotablecaves():
|
|||||||
notablecaves = []
|
notablecaves = []
|
||||||
for kataster_number in settings.NOTABLECAVESHREFS:
|
for kataster_number in settings.NOTABLECAVESHREFS:
|
||||||
try:
|
try:
|
||||||
cave = Cave.objects.get(kataster_number=kataster_number)
|
cave = Cave.objects.get(kataster_number=kataster_number, areacode="1623")
|
||||||
notablecaves.append(cave)
|
notablecaves.append(cave)
|
||||||
except:
|
except:
|
||||||
# print(" ! FAILED to get only one cave per kataster_number OR invalid number for: "+kataster_number)
|
print(" ! FAILED to get only one cave per kataster_number OR invalid number for: "+kataster_number)
|
||||||
caves = Cave.objects.all().filter(kataster_number=kataster_number)
|
|
||||||
for c in caves:
|
hc = Cave.objects.get(kataster_number=359, areacode="1626")
|
||||||
# print(c.kataster_number, c.slug())
|
notablecaves.append(hc)
|
||||||
if c.slug() is not None:
|
print(notablecaves)
|
||||||
notablecaves.append(c)
|
|
||||||
return notablecaves
|
return notablecaves
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user