From ef84432d4f589990bae9541eee952006fceff4a9 Mon Sep 17 00:00:00 2001 From: Holly Gong Date: Tue, 9 Jul 2024 15:07:20 +1000 Subject: [PATCH] Set aliases to the source aliases if no aliases group. --- osv/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osv/models.py b/osv/models.py index 34ee38c5ebe..b1b16fded1e 100644 --- a/osv/models.py +++ b/osv/models.py @@ -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()