From 9a461c31a882b544b3707e308f6c65ad29784625 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 28 Jul 2022 02:37:44 +0300 Subject: [PATCH] adding people --- core/models/survex.py | 4 ++++ templates/cavewallets.html | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/core/models/survex.py b/core/models/survex.py index 9746afb..29241f9 100644 --- a/core/models/survex.py +++ b/core/models/survex.py @@ -195,6 +195,10 @@ class Wallet(models.Model): jsondata = self.get_json() return jsondata["date"] + def people(self): + jsondata = self.get_json() + return jsondata["people"] + def name(self): jsondata = self.get_json() return jsondata["name"] diff --git a/templates/cavewallets.html b/templates/cavewallets.html index 509ca9f..49a36e3 100644 --- a/templates/cavewallets.html +++ b/templates/cavewallets.html @@ -12,13 +12,14 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c

This lists all the files in a wallet, some of which may not be for this specific cave. - + {% for wallet in manywallets|dictsort:"walletname" %} +
WalletWallet DateWallet NameScansSurvex blocksSurvex datesDrawings using these scans
WalletWallet DateWallet NamePeopleScansSurvex blocksSurvex datesDrawings using these scans
{{wallet.walletname}} {{wallet.date}} {{wallet.name}}{{wallet.people}} {{wallet.singlescan_set.all|length}}