forked from viewit/KX-Bridge-Release
feat: add send image option to notifs
This commit is contained in:
@@ -185,7 +185,8 @@ def list_notification_urls() -> list[dict]:
|
||||
if url:
|
||||
events_str = cfg.get("notifications", f"events_{idx}", fallback="finished,failed,cancelled")
|
||||
events = [e.strip() for e in events_str.split(",") if e.strip()]
|
||||
result.append({"url": url, "events": events})
|
||||
include_image = cfg.get("notifications", f"image_{idx}", fallback="false").strip().lower() in ("1", "true", "yes")
|
||||
result.append({"url": url, "events": events, "include_image": include_image})
|
||||
idx += 1
|
||||
return result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user