Skip to content

Commit

Permalink
Allow render fake database specific fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zahraaalizadeh committed May 17, 2024
1 parent 47f2185 commit ecae833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcp/appengine/frontend_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def vulnerability_redirector(potential_vuln_id):
def bug_to_response(bug, detailed=True):
"""Convert a Bug entity to a response object."""
response = osv.vulnerability_to_dict(
bug.to_vulnerability(include_alias=detailed))
bug.to_vulnerability(include_source=detailed, include_alias=detailed))
response.update({
'isFixed': bug.is_fixed,
'invalid': bug.status == osv.BugStatus.INVALID
Expand Down

0 comments on commit ecae833

Please sign in to comment.