-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CVEDB] Why does the function metric_finder
returns unknown
or a metrics_id
#4578
Comments
can you assign this to me |
@vedpawar2254 done! Convention here is to just add a comment saying you're working on an issue, so don't feel like you have to wait for me to click the assignment button before you start in the future! (I know some projects are more into using the assignment button, but I hardly use it unless someone asks.) Anyhow, let us know if you have questions about this. It should be fairly straightforwards refactor based on what @jloehel has said above, I think, but don't be afraid to ask questions about the database and data structures since they aren't always obvious! |
Thanks @terriko!, i'll ask if I have any questions |
… unknown or a metrics_id)
@Rexbeast2 I don't really get the function metric_finder? The function checks basically if the CVSS_version can be mapped to an existing metrics_id but why
unknown
? The metric_finder should return a metrics_id.cve-bin-tool/cve_bin_tool/cvedb.py
Lines 642 to 643 in 7d0d8c8
It would make more sense to add a fourth entry to the table metrics called
unknown
with the id 0 and skip the db check.The IDs a predefined and will not change. Something like this should be enough, right?
The text was updated successfully, but these errors were encountered: