fix: [show Domain] unblur default image if domain is down
Some checks are pending
CI / ail_test (3.10) (push) Waiting to run
CI / ail_test (3.7) (push) Waiting to run
CI / ail_test (3.8) (push) Waiting to run
CI / ail_test (3.9) (push) Waiting to run

This commit is contained in:
terrtia 2025-01-22 14:42:52 +01:00
parent a509e28c8f
commit eda517e842
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -431,6 +431,8 @@ def showDomain():
dict_domain['crawler_history_items'].append(Item(item_id).get_meta(options={'crawler'})) dict_domain['crawler_history_items'].append(Item(item_id).get_meta(options={'crawler'}))
if dict_domain['crawler_history_items']: if dict_domain['crawler_history_items']:
dict_domain['random_item'] = random.choice(dict_domain['crawler_history_items']) dict_domain['random_item'] = random.choice(dict_domain['crawler_history_items'])
else:
dict_domain['tags_safe'] = True
return render_template("showDomain.html", return render_template("showDomain.html",
dict_domain=dict_domain, bootstrap_label=bootstrap_label, dict_domain=dict_domain, bootstrap_label=bootstrap_label,