Skip to content

Commit

Permalink
style: make baby flake happy ...again and again
Browse files Browse the repository at this point in the history
  • Loading branch information
poneoneo committed Sep 23, 2024
1 parent 1920206 commit b5c893d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion your_daily_dose_malware/backends/malshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def gather_selected_malwares(
continue
curr_time = dt.now().date().strftime("%Y-%m-%d")
malware_content = response.content
file_path = f"malware_{sha256_id[:6]}_{curr_time}-{str(malware_content[:4]).replace('\\' , '').replace("<!" , "").replace("<h" , "")}.zip"
type_id = str(malware_content[:4]).replace('\\' , '').replace("<!" , "").replace("<h" , "")
file_path = f"malware_{sha256_id[:6]}_{curr_time}-{type_id}.zip"
progress.update(dl_task, advance=100 / len(new_hashes))
path_and_content = ((choosen_path / file_path), malware_content)
global SELECTED_FILES_AND_CONTENTS
Expand Down

0 comments on commit b5c893d

Please sign in to comment.