mirror of https://github.com/CIRCL/AIL-framework
fix: [UI crawler dashboard] block_languages_search: fix domains_types #110
parent
777eed3b98
commit
dfb8ea4378
|
@ -260,9 +260,12 @@ def domains_search_languages_get():
|
||||||
page = int(page)
|
page = int(page)
|
||||||
except:
|
except:
|
||||||
page = 1
|
page = 1
|
||||||
|
|
||||||
domains_types = request.args.getlist('domain_types')
|
domains_types = request.args.getlist('domain_types')
|
||||||
if domains_types:
|
if domains_types:
|
||||||
domains_types = domains_types[0].split(',')
|
domains_types = domains_types[0].split(',')
|
||||||
|
domains_types = Domain.sanitize_domain_types(domains_types)
|
||||||
|
|
||||||
languages = request.args.getlist('languages')
|
languages = request.args.getlist('languages')
|
||||||
if languages:
|
if languages:
|
||||||
languages = languages[0].split(',')
|
languages = languages[0].split(',')
|
||||||
|
@ -281,7 +284,7 @@ def domains_search_name():
|
||||||
page = int(page)
|
page = int(page)
|
||||||
except:
|
except:
|
||||||
page = 1
|
page = 1
|
||||||
|
|
||||||
domains_types = request.args.getlist('domain_types')
|
domains_types = request.args.getlist('domain_types')
|
||||||
if domains_types:
|
if domains_types:
|
||||||
domains_types = domains_types[0].split(',')
|
domains_types = domains_types[0].split(',')
|
||||||
|
|
|
@ -17,13 +17,13 @@
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<div class="custom-control custom-switch">
|
<div class="custom-control custom-switch">
|
||||||
<input class="custom-control-input" type="checkbox" name="domain_onion_switch" value="" id="domain_onion_switch" {%if 'onion' in domains_types%}checked{%endif%}>
|
<input class="custom-control-input" type="checkbox" name="domain_onion_switch" value="" id="domain_onion_switch" {%if not domains_types%}checked{%elif 'onion' in domains_types%}checked{%endif%}>
|
||||||
<label class="custom-control-label" for="domain_onion_switch">
|
<label class="custom-control-label" for="domain_onion_switch">
|
||||||
<span class="badge badge-danger"><i class="fas fa-user-secret"></i> Onion Domains</span>
|
<span class="badge badge-danger"><i class="fas fa-user-secret"></i> Onion Domains</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="custom-control custom-switch">
|
<div class="custom-control custom-switch">
|
||||||
<input class="custom-control-input" type="checkbox" name="domain_regular_switch" value="True" id="domain_regular_switch"{%if 'regular' in domains_types%}checked{%endif%}>
|
<input class="custom-control-input" type="checkbox" name="domain_regular_switch" value="True" id="domain_regular_switch" {%if not domains_types%}checked{%elif 'regular' in domains_types%}checked{%endif%}>
|
||||||
<label class="custom-control-label" for="domain_regular_switch">
|
<label class="custom-control-label" for="domain_regular_switch">
|
||||||
<span class="badge badge-warning"><i class="fab fa-html5"></i> Web Domains</span>
|
<span class="badge badge-warning"><i class="fab fa-html5"></i> Web Domains</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
Loading…
Reference in New Issue