mirror of https://github.com/CIRCL/AIL-framework
chg: [crawler ui] last crawled domains, show last check timestamp
parent
9098ab25a6
commit
ac45c2dd61
|
@ -272,6 +272,7 @@ def crawlers_last_domains():
|
||||||
domain, epoch = domain_row.split(':', 1)
|
domain, epoch = domain_row.split(':', 1)
|
||||||
dom = Domains.Domain(domain)
|
dom = Domains.Domain(domain)
|
||||||
meta = dom.get_meta()
|
meta = dom.get_meta()
|
||||||
|
meta['last'] = datetime.fromtimestamp(int(epoch)).strftime("%Y/%m/%d %H:%M.%S")
|
||||||
meta['epoch'] = epoch
|
meta['epoch'] = epoch
|
||||||
meta['status_epoch'] = dom.is_up_by_epoch(epoch)
|
meta['status_epoch'] = dom.is_up_by_epoch(epoch)
|
||||||
domains.append(meta)
|
domains.append(meta)
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
data-content="epoch: {{domain['epoch']}}<br>last status: {{ domain['status'] }}">
|
data-content="epoch: {{domain['epoch']}}<br>last status: {{ domain['status'] }}">
|
||||||
<td><a target="_blank" class="domain_name" href="{{ url_for('crawler_splash.showDomain') }}?domain={{ domain['domain'] }}&epoch={{domain['epoch']}}">{{ domain['domain'] }}</a></td>
|
<td><a target="_blank" class="domain_name" href="{{ url_for('crawler_splash.showDomain') }}?domain={{ domain['domain'] }}&epoch={{domain['epoch']}}">{{ domain['domain'] }}</a></td>
|
||||||
<td>{{domain['first_seen']}}</td>
|
<td>{{domain['first_seen']}}</td>
|
||||||
<td>{{domain['last_check']}}</td>
|
<td>{{domain['last']}}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if domain['status_epoch'] %}
|
{% if domain['status_epoch'] %}
|
||||||
<div style="color:Green; display:inline-block">
|
<div style="color:Green; display:inline-block">
|
||||||
|
|
Loading…
Reference in New Issue