Skip to content

Commit

Permalink
Merge pull request #363 from martin-g-it/patch-1
Browse files Browse the repository at this point in the history
Update dashboard.py - sort WG configurations
  • Loading branch information
donaldzou authored Oct 4, 2024
2 parents f3eeff4 + e35f942 commit 31d8af6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,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:
Expand Down

0 comments on commit 31d8af6

Please sign in to comment.