Skip to content

Commit

Permalink
System version fixes (#1316)
Browse files Browse the repository at this point in the history
* fix: ip&uri plugin: set correct system version instead of `None`
* fix: system version was not set during analysis update
  • Loading branch information
jstucke authored Dec 13, 2024
1 parent 59ba33c commit 058e49f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self):
'application/x-sharedlib',
'application/x-dosexec',
],
system_version=self.ip_and_uri_finder.system_version,
system_version=self.ip_and_uri_finder.plugin_version,
),
)

Expand Down
1 change: 1 addition & 0 deletions src/storage/db_interface_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def update_analysis(self, uid: str, plugin: str, analysis_data: dict):
with self.get_read_write_session() as session:
entry = session.get(AnalysisEntry, (uid, plugin))
entry.plugin_version = analysis_data['plugin_version']
entry.system_version = analysis_data.get('system_version')
entry.analysis_date = analysis_data['analysis_date']
entry.summary = analysis_data.get('summary')
entry.tags = analysis_data.get('tags')
Expand Down

0 comments on commit 058e49f

Please sign in to comment.