summaryrefslogtreecommitdiff
path: root/scripts/list-snapshots.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2021-10-01 23:26:58 +0700
committerGitHub <noreply@github.com>2021-10-01 23:26:58 +0700
commit8d225a27b9b1fd4ed7c6d8f04b374f2c4f8dc4b2 (patch)
tree5c34c7e7b7229f45387b44ea3fadcb56c545873f /scripts/list-snapshots.py
parentbfacc30d6c1eb498bd0c425d59b65b1fbe7ba317 (diff)
parent2093fa66f164735a4c7b5d6b74849b855eda5896 (diff)
downloadcommunity.vyos.net-8d225a27b9b1fd4ed7c6d8f04b374f2c4f8dc4b2.tar.gz
community.vyos.net-8d225a27b9b1fd4ed7c6d8f04b374f2c4f8dc4b2.zip
Merge pull request #12 from vyos/c-po-patch-1
snapshots: sort list of images when building page
Diffstat (limited to 'scripts/list-snapshots.py')
-rwxr-xr-xscripts/list-snapshots.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/list-snapshots.py b/scripts/list-snapshots.py
index b298a5a..c4c075e 100755
--- a/scripts/list-snapshots.py
+++ b/scripts/list-snapshots.py
@@ -67,7 +67,7 @@ for name in snapshot_names:
snapshots = natural_sort(snapshots, reverse=True)
tmpl = jinja2.Template("""
-{% for s in snapshots %}
+{% for s in snapshots | sort %}
<h3 id="{{s.name}}"><a href="#{{s.name}}">#</a> {{s.name}}</h3>
<ul>
{% for f in s.files %}