From bf491e96229caf2d3a9306d6fa9afe22bf1bc577 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Wed, 30 Dec 2020 11:32:01 -0600 Subject: [PATCH] Exclude pending authors from API --- KerbalStuff/blueprints/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/KerbalStuff/blueprints/api.py b/KerbalStuff/blueprints/api.py index 14a56904..bc670e92 100644 --- a/KerbalStuff/blueprints/api.py +++ b/KerbalStuff/blueprints/api.py @@ -410,7 +410,8 @@ def mod_info_api(mod_id: int) -> Union[Dict[str, Any], Tuple[Dict[str, Any], int info = mod_info(mod) info["versions"] = list() for author in mod.shared_authors: - info["shared_authors"].append(user_info(author.user)) + if author.accepted: + info["shared_authors"].append(user_info(author.user)) for v in mod.versions: info["versions"].append(version_info(mod, v)) info["description"] = mod.description