Skip to content

Commit

Permalink
Set aliases to the source aliases if no aliases group.
Browse files Browse the repository at this point in the history
  • Loading branch information
hogo6002 committed Jul 9, 2024
1 parent 2cd1236 commit ef84432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osv/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def to_vulnerability(self, include_source=False, include_alias=True):
credits_.append(cr)

related = self.related
aliases = []
aliases = self.aliases

if include_alias:
related_bugs = Bug.query(Bug.related == self.db_id).fetch()
Expand Down

0 comments on commit ef84432

Please sign in to comment.