ORDER BY domain \
LIMIT ?", [value, amount]
)
- elif mode == "recently":
+ elif mode == "added":
database.cursor.execute(
f"SELECT * \
FROM instances \
ORDER BY first_seen DESC \
+LIMIT ?", [amount]
+ )
+ elif mode == "updated":
+ database.cursor.execute(
+ f"SELECT * \
+FROM instances \
+ORDER BY last_updated DESC \
LIMIT ?", [amount]
)
else:
<li><a href="scoreboard?mode=block_level&amount=20">Block level statistics</a></li>
</ul>
- <h2>Recently added:</h2>
+ <h2>Recently ...:</h2>
<ul class="nav">
- <li><a href="list?mode=recently&value=1&amount=50">50 instances</a></li>
+ <li><a href="list?mode=added&value=1&amount=50">50 added instances</a></li>
+ <li><a href="list?mode=updated&value=1&amount=50">50 updated instances</a></li>
</ul>
{% endblock %}
{% block footer %}
{% elif mode == 'original_software' %} Original software {{value}}
{% elif mode == 'software' %} Used software {{value}}
{% elif mode == 'command' %} Command {{value}}
- {% elif mode == 'recently' %} {{amount}} recently added instances
+ {% elif mode == 'added' %} {{amount}} recently added instances
+ {% elif mode == 'updated' %} {{amount}} recently updated instances
{% endif %}
{% endblock %}
<h1>Instances found by command {{value}}</h1>
{% elif mode == 'origin' %}
<h1>Instances originated from {{value}}</h1>
- {% elif mode == 'recently' %}
+ {% elif mode == 'added' %}
<h1>{{amount}} recently added instances</h1>
+ {% elif mode == 'updated' %}
+ <h1>{{amount}} recently updated instances</h1>
{% else %}
<h1 style="color: red">mode={{mode}} not supported</h1>
{% endif %}