mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix diagnosis category listing
This commit is contained in:
parent
124dc158fc
commit
23b8418ee6
1 changed files with 1 additions and 1 deletions
|
@ -661,7 +661,7 @@ class Diagnoser:
|
|||
def _list_diagnosis_categories():
|
||||
|
||||
paths = glob.glob(os.path.dirname(__file__) + "/diagnosers/??-*.py")
|
||||
names = sorted([os.path.basename(path)[: -len(".py")] for path in paths])
|
||||
names = sorted([os.path.basename(path)[: -len(".py")].split("-")[-1] for path in paths])
|
||||
|
||||
return names
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue