mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 18:47:18 +00:00
fix count of expos
This commit is contained in:
@@ -109,11 +109,14 @@ def stats(request):
|
||||
This is only underground survey legs, but includes ARGE as well as Expo survex files.
|
||||
"""
|
||||
statsDict = {}
|
||||
statsDict["expoCount"] = f"{Expedition.objects.count():,}"
|
||||
statsDict["caveCount"] = f"{Cave.objects.count():,}"
|
||||
statsDict["personCount"] = f"{Person.objects.count():,}"
|
||||
statsDict["walletsCount"] = f"{Wallet.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()
|
||||
legsbyexpo, addupsurvexlegs, addupsurvexlength = legs_by_expo(expos)
|
||||
|
||||
Reference in New Issue
Block a user