From 628c2b64969df405fe56f488a6fbb18dd0227068 Mon Sep 17 00:00:00 2001 From: 3err0 Date: Mon, 20 Jan 2025 14:37:57 +0800 Subject: [PATCH] fix --- templates/index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index b33fb39..69bdc25 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,8 +6,9 @@ {% for listing in listings %}
- {% if listing.images|length > 0 %} - + {% set listing_image = listing.images|selectattr('listing_id', 'equalto', listing.id)|list %} + {% if listing_image|length > 0 %} + {% endif %}
{{ listing.title }}