Skip to content

Commit b5c893d

Browse files
committed
style: make baby flake happy ...again and again
1 parent 1920206 commit b5c893d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

your_daily_dose_malware/backends/malshare.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def gather_selected_malwares(
7777
continue
7878
curr_time = dt.now().date().strftime("%Y-%m-%d")
7979
malware_content = response.content
80-
file_path = f"malware_{sha256_id[:6]}_{curr_time}-{str(malware_content[:4]).replace('\\' , '').replace("<!" , "").replace("<h" , "")}.zip"
80+
type_id = str(malware_content[:4]).replace('\\' , '').replace("<!" , "").replace("<h" , "")
81+
file_path = f"malware_{sha256_id[:6]}_{curr_time}-{type_id}.zip"
8182
progress.update(dl_task, advance=100 / len(new_hashes))
8283
path_and_content = ((choosen_path / file_path), malware_content)
8384
global SELECTED_FILES_AND_CONTENTS

0 commit comments

Comments
 (0)