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)
|
||||
dom = Domains.Domain(domain)
|
||||
meta = dom.get_meta()
|
||||
meta['last'] = datetime.fromtimestamp(int(epoch)).strftime("%Y/%m/%d %H:%M.%S")
|
||||
meta['epoch'] = epoch
|
||||
meta['status_epoch'] = dom.is_up_by_epoch(epoch)
|
||||
domains.append(meta)
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
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>{{domain['first_seen']}}</td>
|
||||
<td>{{domain['last_check']}}</td>
|
||||
<td>{{domain['last']}}</td>
|
||||
<td>
|
||||
{% if domain['status_epoch'] %}
|
||||
<div style="color:Green; display:inline-block">
|
||||
|
|
Loading…
Reference in New Issue