fix: [trackers] fix trackers edit

pull/594/head
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
1 changed files with 2 additions and 0 deletions

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