From 66885fedaadf6f19de726cf93f1b01364c80a0ea Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 5 Jun 2020 04:46:46 +0100 Subject: Fix bugs, and document --- app/blueprints/api/endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/blueprints/api/endpoints.py') diff --git a/app/blueprints/api/endpoints.py b/app/blueprints/api/endpoints.py index 051716b..8ac6e70 100644 --- a/app/blueprints/api/endpoints.py +++ b/app/blueprints/api/endpoints.py @@ -58,10 +58,10 @@ def package(package): def package_dependencies(package): ret = [] - include_optional = request.args.get("include_optional", True) + only_hard = request.args.get("only_hard", True) for dep in package.dependencies: - if not include_optional and dep.option: + if only_hard and dep.optional: continue name = None -- cgit v1.2.3