From e35f9429643ee25e963e915142cef49737acac09 Mon Sep 17 00:00:00 2001 From: Martin <53882051+martin-g-it@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:40:04 +0200 Subject: [PATCH] Update dashboard.py - sort WG configurations Sort WG configurations alphabetically --- src/dashboard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dashboard.py b/src/dashboard.py index 1d27526e..9a8b7687 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1297,7 +1297,9 @@ def _regexMatch(regex, text): def _getConfigurationList(): # configurations = {} - for i in os.listdir(WG_CONF_PATH): + items = os.listdir(WG_CONF_PATH) + items.sort() + for i in items: if _regexMatch("^(.{1,}).(conf)$", i): i = i.replace('.conf', '') try: