diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-10-09 02:29:53 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-10-09 02:32:34 +0300 |
commit | 3c31c333f2776bd5afb8b84d7cb07eda667affae (patch) | |
tree | 699e58f3287d5fbcb9393d05be15cd3a0e08e2d6 /core/views/statistics.py | |
parent | 235bd86af37c6b5be5aa404ac4228051273f50cb (diff) | |
download | troggle-3c31c333f2776bd5afb8b84d7cb07eda667affae.tar.gz troggle-3c31c333f2776bd5afb8b84d7cb07eda667affae.tar.bz2 troggle-3c31c333f2776bd5afb8b84d7cb07eda667affae.zip |
Widen the recognizer capabilities for names
Diffstat (limited to 'core/views/statistics.py')
-rw-r--r-- | core/views/statistics.py | 8 |
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}) |