diff --git a/app/blueprints/api/endpoints.py b/app/blueprints/api/endpoints.py index 8ac6e708..b0c36934 100644 --- a/app/blueprints/api/endpoints.py +++ b/app/blueprints/api/endpoints.py @@ -58,7 +58,7 @@ def package(package): def package_dependencies(package): ret = [] - only_hard = request.args.get("only_hard", True) + only_hard = request.args.get("only_hard") for dep in package.dependencies: if only_hard and dep.optional: diff --git a/app/flatpages/help/api.md b/app/flatpages/help/api.md index ab5e71c8..893d3b01 100644 --- a/app/flatpages/help/api.md +++ b/app/flatpages/help/api.md @@ -25,7 +25,7 @@ Tokens can be attained by visiting [Profile > "API Tokens"](/user/tokens/). * GET `/api/packages/` - See [Package Queries](#package-queries) * GET `/api/scores/` - See [Package Queries](#package-queries) * GET `/api/packages///` -* GET `/api/packages///` +* GET `/api/packages///dependencies/` * If query argument `only_hard` is present, only hard deps will be returned. ### Releases