Skip to content

Commit 429a163

Browse files
committed
Use 'OrderedDict' to sort impacts final result
1 parent 6e5fed4 commit 429a163

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/impact-db_impacts_gen.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import glob
1010
import json
1111
import sys
12+
from collections import OrderedDict
1213
from pathlib import Path
1314
from impactdb import db
1415

@@ -38,7 +39,7 @@ def list_impacts(issues: [str]) -> None:
3839
ids = [Path(id).stem[3:] for id in kps]
3940
list_impacts(sorted(ids))
4041

41-
impacts = {"impacts": res}
42+
impacts = {"impacts": OrderedDict(sorted(res.items()))}
4243
impacts.update({"gnat": sorted(db.config["gnat"].keys())})
4344

4445
with open("./lkql_checker/share/lkql/kp/kp.json", "w", encoding="utf-8") as f:

0 commit comments

Comments
 (0)