mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Add ability to not include optional deps in deps API
This commit is contained in:
parent
c3cef1eed6
commit
064eb9df04
@ -58,7 +58,12 @@ def package(package):
|
||||
def package_dependencies(package):
|
||||
ret = []
|
||||
|
||||
include_optional = request.args.get("include_optional", True)
|
||||
|
||||
for dep in package.dependencies:
|
||||
if not include_optional and dep.option:
|
||||
continue
|
||||
|
||||
name = None
|
||||
fulfilled_by = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user