fix: [trackers] fix trackers edit

This commit is contained in:
Terrtia 2023-05-11 16:49:09 +02:00
parent 4473086f89
commit d4766c5adc
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -471,6 +471,8 @@ class Tracker:
filepath = get_yara_rule_file_by_tracker_name(old_to_track)
if filepath:
os.remove(filepath)
if old_type == 'typosquatting':
r_tracker.delete(f'tracker:typosquatting:{old_to_track}')
self._set_field('type', tracker_type)
# create all tracker set