- fetch all data in /list view
- added total_peers and total_blocks to be exposed
if mode in ("detection_mode", "software", "command", "origin"):
database.cursor.execute(
- f"SELECT domain, origin, software, detection_mode, command, total_peers, total_blocks, first_seen, last_updated \
+ f"SELECT * \
FROM instances \
WHERE {mode} = ? \
ORDER BY domain \
<th>Software</th>
<th>Detection mode</th>
<th>Command</th>
+ <th>Total peers</th>
+ <th>Total blocks</th>
<th>First added</th>
<th>Last updated</th>
</thead>
{% endwith %}
</td>
<td><code>{{row['command']}}</code></td>
+ <td>{{row['total_peers']}}</td>
+ <td>{{row['total_blocks']}}</td>
<td>{{row['first_seen']}}</td>
<td>{{row['last_updated']}}</td>
</tr>