mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 09:22:38 +02:00
Do not display deactivated users when their balance is really small
Cases has been reported of rounding issues making deactivated users reapparing. This is due to the fact we're using floats (see #528 for details) Fixes #1336
This commit is contained in:
parent
4f9cad88bd
commit
67938eabbc
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id]|round(2) != 0 %}
|
{%- for member in g.project.members | sort(attribute='name') if member.activated or balance[member.id]|round(2)|abs > 0.01 %}
|
||||||
<tr id="bal-member-{{ member.id }}" action="{% if member.activated %}delete{% else %}reactivate{% endif %}">
|
<tr id="bal-member-{{ member.id }}" action="{% if member.activated %}delete{% else %}reactivate{% endif %}">
|
||||||
<td class="balance-name">{{ member.name }}
|
<td class="balance-name">{{ member.name }}
|
||||||
{%- if show_weight -%}
|
{%- if show_weight -%}
|
||||||
|
@ -61,4 +61,4 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{# It must be set outside of the block definition #}
|
{# It must be set outside of the block definition #}
|
||||||
{% set messages_shown = True %}
|
{% set messages_shown = True %}
|
||||||
|
|
Loading…
Reference in a new issue