diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-06-24 14:10:13 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-06-24 14:10:13 +0100 |
commit | bb69cc073a7cc26a3da6840841b6ec6eca665a51 (patch) | |
tree | 2f2244cbe8ceb40d2d3e763c23cc7585862d06fc /core/views_statistics.py | |
parent | dc5a53376d3b0ed8e50b5cbb4962a0d83f97c13c (diff) | |
download | troggle-bb69cc073a7cc26a3da6840841b6ec6eca665a51.tar.gz troggle-bb69cc073a7cc26a3da6840841b6ec6eca665a51.tar.bz2 troggle-bb69cc073a7cc26a3da6840841b6ec6eca665a51.zip |
start refactor survex import
Diffstat (limited to 'core/views_statistics.py')
-rw-r--r-- | core/views_statistics.py | 3 |
1 files changed, 1 insertions, 2 deletions
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) |