mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
fix: [trackers] fix trackers edit
This commit is contained in:
parent
4473086f89
commit
d4766c5adc
1 changed files with 2 additions and 0 deletions
|
@ -471,6 +471,8 @@ class Tracker:
|
||||||
filepath = get_yara_rule_file_by_tracker_name(old_to_track)
|
filepath = get_yara_rule_file_by_tracker_name(old_to_track)
|
||||||
if filepath:
|
if filepath:
|
||||||
os.remove(filepath)
|
os.remove(filepath)
|
||||||
|
if old_type == 'typosquatting':
|
||||||
|
r_tracker.delete(f'tracker:typosquatting:{old_to_track}')
|
||||||
self._set_field('type', tracker_type)
|
self._set_field('type', tracker_type)
|
||||||
|
|
||||||
# create all tracker set
|
# create all tracker set
|
||||||
|
|
Loading…
Reference in a new issue