2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00

disambiguating names on wallets

This commit is contained in:
Philip Sargent 2023-10-04 22:23:26 +03:00
parent da10605d75
commit adbc8f7955
6 changed files with 20 additions and 3 deletions

View File

@ -29,6 +29,10 @@ manywallets dict.
TODO TODO
cave for a wallet - just gets the last one, randomly. SHould make this a list or many:many ideally cave for a wallet - just gets the last one, randomly. SHould make this a list or many:many ideally
-- add the participants on an explicit wallet list to .slugpeople so that they get proper URL-linked
on the per-person wallet report, and do the same thing for per-cave and per-year wallet reports
add this file in to the todo list thinggy. add this file in to the todo list thinggy.
""" """

View File

@ -196,6 +196,7 @@ foreign_friends = [
"K. Jäger", "K. Jäger",
"Kai Schwekend", "Kai Schwekend",
"Karl Gaisberger", "Karl Gaisberger",
"Marcus Scheuermann",
"Marcus Scheuerman", "Marcus Scheuerman",
"Mark Morgan", "Mark Morgan",
"P. Jeutter", "P. Jeutter",
@ -279,6 +280,11 @@ def GetPersonExpeditionNameLookup(expedition):
if n: if n:
possnames += apply_variations(n, l) possnames += apply_variations(n, l)
if f == "Adeleide".lower():
possnames += apply_variations("Adelaide", l)
if f == "Adelaide".lower():
possnames += apply_variations("Adeleide", l)
if f == "Robert".lower(): if f == "Robert".lower():
possnames += apply_variations("Bob", l) possnames += apply_variations("Bob", l)
if f == "Rob".lower(): if f == "Rob".lower():
@ -303,6 +309,7 @@ def GetPersonExpeditionNameLookup(expedition):
possnames += apply_variations("Andy", l) possnames += apply_variations("Andy", l)
if f == "Andy".lower(): if f == "Andy".lower():
possnames += apply_variations("Andrew", l) possnames += apply_variations("Andrew", l)
if f == "Michael".lower(): if f == "Michael".lower():
possnames += apply_variations("Mike", l) possnames += apply_variations("Mike", l)
@ -316,6 +323,11 @@ def GetPersonExpeditionNameLookup(expedition):
if f == "Pete".lower(): if f == "Pete".lower():
possnames += apply_variations("Peter", l) possnames += apply_variations("Peter", l)
if f == "Tobias".lower():
possnames += apply_variations("Toby", l)
if f == "Toby".lower():
possnames += apply_variations("Tobias", l)
if f == "Olly".lower(): if f == "Olly".lower():
possnames += apply_variations("Oliver", l) possnames += apply_variations("Oliver", l)
if f == "Oliver".lower(): if f == "Oliver".lower():

View File

@ -31,7 +31,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<td style="padding:2px">{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td> <td style="padding:2px">{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td>
<td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td> <td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td>
<td style="padding:2px">{% if wallet.slugpeople %}{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}{% else %}{{wallet.persons }}{% endif %}</td> <td style="padding:2px">{% if wallet.slugpeople %}<em>{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}</em>{% else %}{{wallet.persons }}{% endif %}</td>
<td align="center" style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.singlescan_set.all|length}}</a></td> <td align="center" style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.singlescan_set.all|length}}</a></td>
<td style="padding:2px"> <td style="padding:2px">
{% for survexblock in wallet.survexblock_set.all %} {% for survexblock in wallet.survexblock_set.all %}

View File

@ -22,6 +22,7 @@
<li> <a href="/years/{{expedition.year}}/">documentation index</a> for this Expo <li> <a href="/years/{{expedition.year}}/">documentation index</a> for this Expo
<li> <a href="/wallets/year/{{expedition.year}}">wallet completion status</a> for this Expo <li> <a href="/wallets/year/{{expedition.year}}">wallet completion status</a> for this Expo
<li> <a href="/years/{{expedition.year}}/{{expedition.logbookfile}}">full logbook</a> for this Expo <li> <a href="/years/{{expedition.year}}/{{expedition.logbookfile}}">full logbook</a> for this Expo
<li> <a href="/aliases/{{expedition.year}}">alias names</a> for this Expo
{% if logged_in %} {% if logged_in %}
<p>Reparse and reload this year's logbook by clicking here: <a href="/expedition/{{expedition.year}}?reload">RELOAD</a> <p>Reparse and reload this year's logbook by clicking here: <a href="/expedition/{{expedition.year}}?reload">RELOAD</a>
{% endif %} {% endif %}

View File

@ -30,7 +30,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<td style="padding:2px" >{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td> <td style="padding:2px" >{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td>
<td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td> <td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td>
<td style="padding:2px">{% if wallet.slugpeople %}{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}{% else %}{{wallet.persons }}{% endif %}</td> <td style="padding:2px">{% if wallet.slugpeople %}<em>{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}</em>{% else %}{{wallet.persons }}{% endif %}</td>
<td style="padding:2px"> <td style="padding:2px">
{% if wallet.cave %} {% if wallet.cave %}
{% if wallet.caveobj.slug %} {% if wallet.caveobj.slug %}

View File

@ -39,7 +39,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<td style="padding:2px">{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td> <td style="padding:2px">{% if wallet.walletdate %}{{wallet.walletdate}}{% else %} {% endif %}</td>
<td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td> <td style="padding:2px">{% if wallet.name %}{{wallet.name|truncatechars:20}}{% else %}<em>{% if wallet.displaynames %} {% for dn in wallet.displaynames %}{{dn}}{%if not forloop.last %}, {% endif %} {% endfor %}{% else %} {% endif %}</em>{% endif %}</td>
<td style="padding:2px">{% if wallet.slugpeople %}{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}{% else %}{{wallet.persons }}{% endif %}</td> <td style="padding:2px">{% if wallet.slugpeople %}<em>{%for p in wallet.slugpeople%}<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}{% endfor %}</em>{% else %}{{wallet.persons }}{% endif %}</td>
<td style="padding:2px"> <td style="padding:2px">
{% if wallet.cave %} {% if wallet.cave %}
{% if wallet.caveobj.slug %} {% if wallet.caveobj.slug %}