diff --git a/bin/trackers/Tracker_Regex.py b/bin/trackers/Tracker_Regex.py index 78b7baba..3cced9f0 100755 --- a/bin/trackers/Tracker_Regex.py +++ b/bin/trackers/Tracker_Regex.py @@ -95,7 +95,7 @@ class Tracker_Regex(AbstractModule): NotificationHelper.sendEmailNotification(mail, mail_subject, mail_body) webhook_to_post = Term.get_term_webhook(tracker_uuid) if webhook_to_post: - request_body = dict({"itemId": item_id, "url": self.full_item_url, "type": "REGEX"}) + request_body = {"itemId": item_id, "url": self.full_item_url, "type": "REGEX"} r = requests.post(webhook_to_post, data=request_body) if (r.status_code >= 400): raise Exception(f"Webhook request failed for {webhook_to_post}\nReason: {r.reason}") diff --git a/bin/trackers/Tracker_Term.py b/bin/trackers/Tracker_Term.py index 622aad2a..487174bf 100755 --- a/bin/trackers/Tracker_Term.py +++ b/bin/trackers/Tracker_Term.py @@ -141,7 +141,7 @@ class Tracker_Term(AbstractModule): webhook_to_post = Term.get_term_webhook(term_uuid) if webhook_to_post: - request_body = dict({"itemId": item_id, "url": self.full_item_url, "type": "Term", "term": term}) + request_body = {"itemId": item_id, "url": self.full_item_url, "type": "Term", "term": term} r = requests.post(webhook_to_post, data=request_body) if (r.status_code >= 400): raise Exception(f"Webhook request failed for {webhook_to_post}\nReason: {r.reason}") diff --git a/bin/trackers/Tracker_Yara.py b/bin/trackers/Tracker_Yara.py index 1e62021d..9cf36ae8 100755 --- a/bin/trackers/Tracker_Yara.py +++ b/bin/trackers/Tracker_Yara.py @@ -98,7 +98,7 @@ class Tracker_Yara(AbstractModule): NotificationHelper.sendEmailNotification(mail, mail_subject, mail_body) webhook_to_post = Term.get_term_webhook(tracker_uuid) if webhook_to_post: - request_body = dict({"itemId": item_id, "url": self.full_item_url, "type": "YARA"}) + request_body = {"itemId": item_id, "url": self.full_item_url, "type": "YARA"} r = requests.post(webhook_to_post, data=request_body) if (r.status_code >= 400): raise Exception(f"Webhook request failed for {webhook_to_post}\nReason: {r.reason}")