chg: [crawler ui] last crawled domains, show last check timestamp

pull/604/head
Terrtia 2023-08-01 14:30:36 +02:00
parent 9098ab25a6
commit ac45c2dd61
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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">