This commit is contained in:
rubenwardy 2020-06-05 04:48:53 +01:00
parent 66885fedaa
commit 4c3063cadf
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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/<username>/<name>/`
* GET `/api/packages/<username>/<name>/`
* GET `/api/packages/<username>/<name>/dependencies/`
* If query argument `only_hard` is present, only hard deps will be returned.
### Releases