fix: Count unique companies not roles in person profile subtitle
"Powiazany z 6 firmami (9 rol)" instead of "Powiazany z 9 firmami" Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
b70477553f
commit
7b870b76ec
@ -190,8 +190,9 @@
|
||||
{{ person.imiona[0] }}{{ person.nazwisko[0] }}
|
||||
</div>
|
||||
<h1 class="person-name">{{ person.full_name() }}</h1>
|
||||
{% set unique_company_ids = company_roles|map(attribute='company_id')|list|unique|list %}
|
||||
<p class="person-subtitle">
|
||||
Powiazany z {{ company_roles|length }} firmami w Norda Biznes
|
||||
Powiazany z {{ unique_company_ids|length }} firmami ({{ company_roles|length }} ról) w Norda Biznes
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user