Skip to content

Commit ea7b639

Browse files
shmuel44omerKarkKatz
authored andcommitted
[FindEmailCampaign] MyPy In Docker (#38140)
* fix * RN
1 parent a6cf6e8 commit ea7b639

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Packs/Campaign/ReleaseNotes/3_4_16.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
#### Scripts
3+
4+
##### FindEmailCampaign
5+
6+
- Documentation and metadata improvements.

Packs/Campaign/Scripts/FindEmailCampaign/FindEmailCampaign.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def summarize_email_body(body, subject, nb_sentences=3, subject_weight=1.5, keyw
358358
if word.lower() in word_frequency:
359359
sentence_rank[i] += word_frequency[word.lower()]
360360
sentence_rank[i] = sentence_rank[i] / len(word_tokenize(sent)) # type: ignore
361-
top_sentences_indices: np.ndarray = np.argsort(sentence_rank)[::-1][:nb_sentences].tolist()
361+
top_sentences_indices: np.ndarray = np.argsort(sentence_rank)[::-1][:nb_sentences].tolist() # type: ignore[assignment]
362362
summary = []
363363
for sent_i in sorted(top_sentences_indices): # type: ignore
364364
sent = corpus[sent_i].strip().replace('\n', ' ')

Packs/Campaign/pack_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Phishing Campaign",
33
"description": "This pack can help you find related phishing, spam or other types of email incidents and characterize campaigns.",
44
"support": "xsoar",
5-
"currentVersion": "3.4.15",
5+
"currentVersion": "3.4.16",
66
"author": "Cortex XSOAR",
77
"url": "https://www.paloaltonetworks.com/cortex",
88
"email": "",

0 commit comments

Comments
 (0)