Skip to content

Commit

Permalink
fix: importer not importing upstream values from sources (#3196)
Browse files Browse the repository at this point in the history
As the internal data store name for upstream from external sources is
'upstream_raw', it needs to be set properly when received from the
sources.
  • Loading branch information
jess-lowe authored Feb 28, 2025
1 parent 4475ca6 commit 93556bb
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 @@ -542,7 +542,7 @@ def update_from_vulnerability(self, vulnerability):

self.aliases = list(vulnerability.aliases)
self.related = list(vulnerability.related)
self.upstream = list(vulnerability.upstream)
self.upstream_raw = list(vulnerability.upstream)

self.affected_packages = []
for affected_package in vulnerability.affected:
Expand Down

0 comments on commit 93556bb

Please sign in to comment.