summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-10-09 02:29:53 +0300
committerPhilip Sargent <philip.sargent@klebos.com>2022-10-09 02:32:34 +0300
commit3c31c333f2776bd5afb8b84d7cb07eda667affae (patch)
tree699e58f3287d5fbcb9393d05be15cd3a0e08e2d6 /core
parent235bd86af37c6b5be5aa404ac4228051273f50cb (diff)
downloadtroggle-3c31c333f2776bd5afb8b84d7cb07eda667affae.tar.gz
troggle-3c31c333f2776bd5afb8b84d7cb07eda667affae.tar.bz2
troggle-3c31c333f2776bd5afb8b84d7cb07eda667affae.zip
Widen the recognizer capabilities for names
Diffstat (limited to 'core')
-rw-r--r--core/views/statistics.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/core/views/statistics.py b/core/views/statistics.py
index 2e6684f..fb26254 100644
--- a/core/views/statistics.py
+++ b/core/views/statistics.py
@@ -182,5 +182,11 @@ def aliases(request, year):
persons = Person.objects.all()
aliasdict = GetPersonExpeditionNameLookup(expo)
+ res = aliasdict
+ # invert
+ invert ={}
+ for p in res:
+ invert[res[p]].append(p)
+
- return render(request,'aliases.html', {'year': year, 'aliasdict': aliasdict,'personexpeditions': personexpeditions, 'persons': persons})
+ return render(request,'aliases.html', {'year': year, 'aliasdict': aliasdict, 'invert': invert,'personexpeditions': personexpeditions, 'persons': persons})