Skip to content
Snippets Groups Projects
Commit b5602d6e authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Feature: Update registered attribute of existing detectors. (Redmine issue: #7577)

parent e9b1538b
No related branches found
No related tags found
No related merge requests found
......@@ -346,6 +346,7 @@ class MentatDetmngrScript(mentat.script.fetcher.FetcherScript):
continue
self.logger.warning("Updating existing detector '%s'.", detkey)
detector_db.credibility = detector_file['credibility']
detector_db.registered = detector_file['registered']
self.sqlservice.session.commit()
......@@ -360,4 +361,4 @@ class MentatDetmngrScript(mentat.script.fetcher.FetcherScript):
:return: True or False
:rtype: bool
"""
return det_db.credibility != det_file['credibility']
return det_db.credibility != det_file['credibility'] or det_db.registered != det_file['registered']
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment