mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-31 06:26:14 +00:00
fix: [show Domain] unblur default image if domain is down
This commit is contained in:
parent
a509e28c8f
commit
eda517e842
1 changed files with 2 additions and 0 deletions
|
@ -431,6 +431,8 @@ def showDomain():
|
|||
dict_domain['crawler_history_items'].append(Item(item_id).get_meta(options={'crawler'}))
|
||||
if 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",
|
||||
dict_domain=dict_domain, bootstrap_label=bootstrap_label,
|
||||
|
|
Loading…
Add table
Reference in a new issue