From 926e75c075e1921300fcfffc8a8b061d4c647e8d Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Tue, 6 Oct 2020 10:18:21 +0800 Subject: [PATCH] fix versions sorting --- nvchecker/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvchecker/core.py b/nvchecker/core.py index 3f93989..d40a1e8 100644 --- a/nvchecker/core.py +++ b/nvchecker/core.py @@ -134,7 +134,7 @@ def read_verfile(file: Path) -> VersData: def write_verfile(file: Path, versions: VersData) -> None: # sort and indent to make it friendly to human and git data = json.dumps( - dict(sorted(versions)), + dict(sorted(versions.items())), indent=2, ensure_ascii=False, ) + '\n'