forked from rDrama/rDrama
1
0
Fork 0

jinja2 doesn't has getattr but we can subscript apparently

weird but ok
master
justcool393 2022-10-28 01:25:18 -05:00
parent ad58490dd0
commit 09c3ac2b65
1 changed files with 2 additions and 2 deletions

View File

@ -48,10 +48,10 @@
{% if v.id == user.id %}
{% set style="class=\"self\"" %}
{% endif %}
{{format_user_in_table(user, style, loop.index, getattr(user, attr_name))}}
{{format_user_in_table(user, style, loop.index, user[attr_name])}}
{% endfor %}
{% if position %}
{{format_user_in_table(v, "style=\"border-top:2px solid var(--primary)\"", position, getattr(v, attr_name))}}
{{format_user_in_table(v, "style=\"border-top:2px solid var(--primary)\"", position, v[attr_name])}}
{% endif %}
</tbody>
</table>