mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 00:28:22 +00:00
chg: [crawler ui] last crawled domains, show last check timestamp
This commit is contained in:
parent
9098ab25a6
commit
ac45c2dd61
2 changed files with 2 additions and 1 deletions
|
@ -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 a new issue