mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 14:59:02 +00:00
Task logs now stored on main server
This commit is contained in:
@@ -19,10 +19,9 @@
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
{% for server in logs %}
|
||||
{% for task_result in logs[server] %}
|
||||
{% for task_result in logs %}
|
||||
<tr>
|
||||
<td>{{ server }}</td>
|
||||
<td>{{ task_result.server_name }}</td>
|
||||
<td><a href="/website/{{ task_result.website_id }}/">#{{ task_result.website_id }}</a></td>
|
||||
<td>{{ task_result.status_code }}</td>
|
||||
<td>{{ task_result.file_count }}</td>
|
||||
@@ -32,7 +31,6 @@
|
||||
<td>{{ task_result.indexed_time | datetime_format }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
<div class="card-header">Dashboard</div>
|
||||
<div class="card-body">
|
||||
|
||||
<a href="/logs">Logs</a>
|
||||
<br>
|
||||
<hr>
|
||||
<h3>Crawl servers</h3>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
|
||||
@@ -90,25 +90,25 @@
|
||||
<tr>
|
||||
<th>Crawl time</th>
|
||||
{% for server in crawl_server_stats %}
|
||||
<td>{{ crawl_server_stats[server].task_time|round(2) }}s</td>
|
||||
<td>{{ crawl_server_stats[server].time|round(2) }}s</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Crawl time average</th>
|
||||
{% for server in crawl_server_stats %}
|
||||
<td>{{ crawl_server_stats[server].task_time_avg|round(2) }}s per task</td>
|
||||
<td>{{ crawl_server_stats[server].time_avg|round(2) }}s per task</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th>File crawled</th>
|
||||
{% for server in crawl_server_stats %}
|
||||
<td>{{ crawl_server_stats[server].task_file_count }}</td>
|
||||
<td>{{ crawl_server_stats[server].file_count }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<th>File crawled average</th>
|
||||
{% for server in crawl_server_stats %}
|
||||
<td>{{ crawl_server_stats[server].task_file_count_avg | round(2) }} per task</td>
|
||||
<td>{{ crawl_server_stats[server].file_count_avg | round(2) }} per task</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user