You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
@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!
@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: