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

Feature: Simplify generating of group names. (Redmine issue: #6227)

parent 49a67db6
No related branches found
No related tags found
No related merge requests found
......@@ -489,7 +489,7 @@ class MentatNetmngrScript(mentat.script.fetcher.FetcherScript):
"""
# abuse_group_names is a list of actual names of abuse groups stored in the database,
# abuse_group_dict.keys() is a list of group names created from emails
abuse_group_names = [abuse_group_dict[group].name for group in abuse_group_dict.keys()]
abuse_group_names = [group.name for group in abuse_group_dict.values()]
for group_name in sorted(wi_file_data.keys()):
# Try finding the group from the file primarily by emails and secondarily by name of the group.
if not group_name in abuse_group_dict and not group_name in abuse_group_names:
......
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