Skip to content

Commit

Permalink
fix: attachment name contained '/'
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jul 19, 2024
1 parent 317d4b7 commit 17b5dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mftp/ntfy.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def format_notice(notices, session):
"Tags": f"{emoji}, {notice['Type']}, {notice['Subject']}, {notice['Company']}",
"Priority": priority,
"Links": links,
"Attachment": f"{id_}-{notice['Type'].replace(' ', '_')}-{notice['Subject'].replace(' ', '_')}-{notice['Company'].replace(' ', '_')}.pdf"
"Attachment": f"{id_}-{notice['Type']}-{notice['Subject']}-{notice['Company']}.pdf".replace(' ', '_').replace('/', '_')
}

try:
Expand Down

0 comments on commit 17b5dae

Please sign in to comment.