Skip to content

Commit

Permalink
Include vulnerable flag to API projects output (repology/repology-upd…
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Mar 29, 2024
1 parent 62ba9a4 commit 80139ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repologyapp/views/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def api_v1_package_to_json(package: PackageDataDetailed) -> dict[str, Any]:
output['summary'] = package.comment
if package.category:
output['categories'] = [package.category]
if package.flags & PackageFlags.VULNERABLE:
output['vulnerable'] = True

output['status'] = PackageStatus.as_string(package.versionclass)
output['origversion'] = package.rawversion if package.rawversion != package.version else None
Expand Down

0 comments on commit 80139ff

Please sign in to comment.