Skip to content
Snippets Groups Projects
Commit cbea5921 authored by Hunter Wittenborn's avatar Hunter Wittenborn
Browse files

Fixed missing licences in RPC interface

It looks like package license IDs are matched to ID's under the Packages 
table, not PackageBases.
parent 5ad68952
No related branches found
No related tags found
No related merge requests found
Pipeline #11110 passed
......@@ -131,7 +131,7 @@ def run_info(returned_data, package_name, snapshot_uri):
# License table.
current_array["License"] = []
for i in db.query(PackageLicense).filter(PackageLicense.PackageID == db_package_baseid.ID):
for i in db.query(PackageLicense).filter(PackageLicense.PackageID == db_package.ID):
current_array["License"] += [db.query(License).first().Name]
# Keywords table.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment