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

Fix: Exclude inactive groups from netmngr.py module.

parent 8b14b09c
No related branches found
No related tags found
No related merge requests found
...@@ -367,7 +367,7 @@ class MentatNetmngrScript(mentat.script.fetcher.FetcherScript): ...@@ -367,7 +367,7 @@ class MentatNetmngrScript(mentat.script.fetcher.FetcherScript):
wi_file_data = self._process_whois_data(wi_file_data_raw, wi_file_type) wi_file_data = self._process_whois_data(wi_file_data_raw, wi_file_type)
self.logger.info("Number of abuse groups in reference whois file: %d", len(wi_file_data.keys())) self.logger.info("Number of abuse groups in reference whois file: %d", len(wi_file_data.keys()))
abuse_groups = self.sqlservice.session.query(GroupModel).order_by(GroupModel.name).all() abuse_groups = self.sqlservice.session.query(GroupModel).filter(GroupModel.enabled == True).order_by(GroupModel.name).all()
self.sqlservice.session.commit() self.sqlservice.session.commit()
for abg in abuse_groups: for abg in abuse_groups:
......
  • Pavel Kácha @ph

    mentioned in issue #7586 (closed)

    By Rajmund Hruška on 2024-12-26T14:25:53

    · Imported

    mentioned in issue #7586 (closed)

    By Rajmund Hruška on 2024-12-26T14:25:53

    Toggle commit list
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