mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 07:10:09 +01:00
Merge pull request #363 from martin-g-it/patch-1
Update dashboard.py - sort WG configurations
This commit is contained in:
commit
31d8af642d
@ -1303,7 +1303,9 @@ def _regexMatch(regex, text):
|
|||||||
|
|
||||||
def _getConfigurationList():
|
def _getConfigurationList():
|
||||||
# configurations = {}
|
# 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):
|
if _regexMatch("^(.{1,}).(conf)$", i):
|
||||||
i = i.replace('.conf', '')
|
i = i.replace('.conf', '')
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user