From 1eae92c755ae670db68c9f9feb6b9aeb7eccb93a Mon Sep 17 00:00:00 2001 From: Terrtia Date: Fri, 2 Jun 2023 13:46:04 +0200 Subject: [PATCH] fix: [domains explorer] None screeenshot --- var/www/templates/crawler/crawler_splash/domain_explorer.html | 2 +- var/www/templates/domains/domains_result_list.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/var/www/templates/crawler/crawler_splash/domain_explorer.html b/var/www/templates/crawler/crawler_splash/domain_explorer.html index 12472b4f..b3ed158f 100644 --- a/var/www/templates/crawler/crawler_splash/domain_explorer.html +++ b/var/www/templates/crawler/crawler_splash/domain_explorer.html @@ -213,7 +213,7 @@ blocks.addEventListener('change', pixelate_all, false); {% for dict_domain in dict_data['list_elem'] %} {% if dict_domain['is_tags_safe'] %} - {% if 'screenshot' in dict_domain %} + {% if dict_domain['screenshot'] %} var screenshot_url = "{{ url_for('objects_item.screenshot', filename="") }}{{dict_domain['screenshot']}}"; {% else %} var screenshot_url = "{{ url_for('static', filename='image/AIL.png') }}"; diff --git a/var/www/templates/domains/domains_result_list.html b/var/www/templates/domains/domains_result_list.html index 8ca378d4..cbcdb62c 100644 --- a/var/www/templates/domains/domains_result_list.html +++ b/var/www/templates/domains/domains_result_list.html @@ -172,7 +172,7 @@ blocks.addEventListener('change', pixelate_all, false); {% for dict_domain in l_dict_domains['list_elem'] %} {% if dict_domain['is_tags_safe'] %} - {% if 'screenshot' in dict_domain %} + {% if dict_domain['screenshot'] %} var screenshot_url = "{{ url_for('objects_item.screenshot', filename="") }}{{dict_domain['screenshot']}}"; {% else %} var screenshot_url = "{{ url_for('static', filename='image/AIL.png') }}";