From 9291a130933dc792c1c91a101e2af0c688d002cc Mon Sep 17 00:00:00 2001 From: Alfredo Altamirano Date: Mon, 2 Feb 2026 06:45:30 +0000 Subject: [PATCH] feat(utils): Adds site hostname to backup success email --- offsite_backups/offsite_backups/offsite_backup_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/offsite_backups/offsite_backups/offsite_backup_utils.py b/offsite_backups/offsite_backups/offsite_backup_utils.py index f16eabe..66bd5a2 100644 --- a/offsite_backups/offsite_backups/offsite_backup_utils.py +++ b/offsite_backups/offsite_backups/offsite_backup_utils.py @@ -5,7 +5,7 @@ import os import frappe -from frappe.utils import cint, split_emails +from frappe.utils import cint, get_host_name, split_emails def send_email(success, service_name, doctype, email_field, error_status=None): @@ -24,8 +24,8 @@ def send_email(success, service_name, doctype, email_field, error_status=None): subject = "Backup Upload Successful" message = """

Backup Uploaded Successfully!

-

Hi there, this is just to inform you that your backup was successfully uploaded to your {} bucket. So relax!

""".format( - service_name +

Hi there, this is just to inform you that the backup of your site {} was successfully uploaded to your {} bucket. So relax!

""".format( + get_host_name(), service_name ) else: subject = "[Warning] Backup Upload Failed"