From d5b048d4b49e0b47b8d2537fefe28c53764a17f7 Mon Sep 17 00:00:00 2001 From: terrtia Date: Thu, 12 Sep 2024 20:11:16 +0200 Subject: [PATCH] fix: [object subtype dashboard] fix None first/last seen --- var/www/templates/objects/subtypes_objs_dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/www/templates/objects/subtypes_objs_dashboard.html b/var/www/templates/objects/subtypes_objs_dashboard.html index e8cd3bc4..15c30f5a 100644 --- a/var/www/templates/objects/subtypes_objs_dashboard.html +++ b/var/www/templates/objects/subtypes_objs_dashboard.html @@ -182,8 +182,8 @@ {{ meta['id'] }} - {{meta['first_seen'][0:4]}}-{{meta['first_seen'][4:6]}}-{{meta['first_seen'][6:8]}} - {{meta['last_seen'][0:4]}}-{{meta['last_seen'][4:6]}}-{{meta['last_seen'][6:8]}} + {% if meta['first_seen'] %}{{meta['first_seen'][0:4]}}-{{meta['first_seen'][4:6]}}-{{meta['first_seen'][6:8]}}{% endif %} + {% if meta['last_seen'] %}{{meta['last_seen'][0:4]}}-{{meta['last_seen'][4:6]}}-{{meta['last_seen'][6:8]}}{% endif %} {{ meta['nb_seen'] }}