Should fix duplicated albums in user profile (wtf)

This commit is contained in:
Julien Constant 2023-04-13 13:33:40 +02:00
parent 3e661826a5
commit 389549904a

View File

@ -13,7 +13,7 @@
{% if can_edit(profile, user) %}
<button id="download_all_pictures", onclick=download_pictures()>{% trans %}Download all my pictures{% endtrans %}</button>
{% endif %}
{% for a in albums %}
{% for a in albums | unique %}
<h4>{{ a.name }}</h4>
<div class="photos">
{% for p in pictures[a.id] %}