mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 18:17:07 +00:00
fix count of expos
This commit is contained in:
@@ -109,12 +109,15 @@ def stats(request):
|
|||||||
This is only underground survey legs, but includes ARGE as well as Expo survex files.
|
This is only underground survey legs, but includes ARGE as well as Expo survex files.
|
||||||
"""
|
"""
|
||||||
statsDict = {}
|
statsDict = {}
|
||||||
statsDict["expoCount"] = f"{Expedition.objects.count():,}"
|
|
||||||
statsDict["caveCount"] = f"{Cave.objects.count():,}"
|
statsDict["caveCount"] = f"{Cave.objects.count():,}"
|
||||||
statsDict["personCount"] = f"{Person.objects.count():,}"
|
statsDict["personCount"] = f"{Person.objects.count():,}"
|
||||||
statsDict["walletsCount"] = f"{Wallet.objects.count():,}"
|
statsDict["walletsCount"] = f"{Wallet.objects.count():,}"
|
||||||
statsDict["logbookEntryCount"] = f"{LogbookEntry.objects.count():,}"
|
statsDict["logbookEntryCount"] = f"{LogbookEntry.objects.count():,}"
|
||||||
|
|
||||||
|
#statsDict["expoCount"] = f"{Expedition.objects.count():,}" # incorrect as no expo in 76, 2020,21
|
||||||
|
n = int(current_expo()) - 1975 - 3
|
||||||
|
statsDict["expoCount"] = f"{n:,}" # incorrect as no expo in 76, 2020,21
|
||||||
|
|
||||||
expos = Expedition.objects.all()
|
expos = Expedition.objects.all()
|
||||||
legsbyexpo, addupsurvexlegs, addupsurvexlength = legs_by_expo(expos)
|
legsbyexpo, addupsurvexlegs, addupsurvexlength = legs_by_expo(expos)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user