From a00c8dde9e74d7e0fee0fe112299eb4166af8f12 Mon Sep 17 00:00:00 2001 From: Sebastian Smiley Date: Mon, 23 Sep 2024 13:41:01 -0400 Subject: [PATCH] Attachments --- target_apprise/sinks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target_apprise/sinks.py b/target_apprise/sinks.py index fb846b9..f472105 100644 --- a/target_apprise/sinks.py +++ b/target_apprise/sinks.py @@ -16,7 +16,8 @@ def process_record(self, record: dict, context: dict) -> None: title: Optional[str] = record.get("title") body: Optional[str] = record.get("body") + attach: Optional[str] = record.get("attach") if title is None and body is None: raise Exception("Both the title and body cannot be None") - if a.notify(title=title, body=body) is False: + if a.notify(title=title, body=body, attach=attach) is False: raise Exception("Failed to send notification")