From bb69cc073a7cc26a3da6840841b6ec6eca665a51 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 24 Jun 2020 14:10:13 +0100 Subject: start refactor survex import --- core/views_statistics.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/views_statistics.py') diff --git a/core/views_statistics.py b/core/views_statistics.py index 889eb30..5b85ef1 100644 --- a/core/views_statistics.py +++ b/core/views_statistics.py @@ -12,7 +12,7 @@ from django.views.generic.list import ListView from troggle.core.models import Expedition, Person, PersonExpedition from troggle.core.models_caves import Cave, LogbookEntry -from troggle.core.models_survex import SurvexLeg, SurvexBlock +from troggle.core.models_survex import SurvexBlock import troggle.settings as settings @@ -106,7 +106,6 @@ def stats(request): legsbyexpo.append((expedition, {"nsurvexlegs": "{:,}".format(legsyear), "survexleglength":"{:,.0f}".format(survexleglength)})) legsbyexpo.reverse() - #survexlegs = SurvexLeg.objects.all() renderDict = {**statsDict, **{ "nsurvexlegs": "{:,}".format(nimportlegs), "totalsurvexlength":totalsurvexlength/1000, "addupsurvexlength":addupsurvexlength/1000, "legsbyexpo":legsbyexpo }} # new syntax return render(request,'statistics.html', renderDict) -- cgit v1.2.3