[fix] reorder diagnosers

un-funkify the order 8)
This commit is contained in:
Tagadda 2022-01-21 17:29:31 +00:00
parent cc65217f58
commit d5008bc656

View file

@ -656,9 +656,9 @@ class Diagnoser:
def _list_diagnosis_categories():
paths = glob.glob(os.path.dirname(__file__) + "/diagnosers/??-*.py")
names = sorted(
[os.path.basename(path)[: -len(".py")].split("-")[-1] for path in paths]
)
names = [name.split("-")[-1] for name in sorted(
[os.path.basename(path)[: -len(".py")] for path in paths]
)]
return names