2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-04-01 11:41:57 +01:00
This commit is contained in:
2023-10-15 18:39:00 +03:00
parent c51c2326fe
commit a786f4813f
3 changed files with 18 additions and 6 deletions

View File

@@ -125,17 +125,19 @@ def getnotablecaves():
def caveindex(request):
#allcaves = Cave.objects.all()
allcaves = Cave.objects.filter(areacode="1626") # testing with subset
for c in allcaves:
if c.entrances:
pass
"""Should use Django order-by for lazy sorting, not here. But only after we have a proper slug system in place for Caves
"""
# allcaves = Cave.objects.all()
# for c in allcaves:
# if c.entrances:
# pass
caves1623 = list(Cave.objects.filter(areacode="1623"))
caves1624 = list(Cave.objects.filter(areacode="1624"))
caves1626 = list(Cave.objects.filter(areacode="1626"))
caves1627 = list(Cave.objects.filter(areacode="1627"))
caves1623.sort(key=caveKey)
caves1624.sort(key=caveKey)
caves1626.sort(key=caveKey)
caves1627.sort(key=caveKey)
return render(