From 7d0147061a905db1109ac61a11c04924fcf585de Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Thu, 17 Sep 2026 21:04:03 +0200 Subject: [PATCH] changes to the Email processing --- Web/push_notifications.py | 4 ++ Web/templates/library_borrowings_admin.html | 57 +++++++-------------- 2 files changed, 23 insertions(+), 38 deletions(-) diff --git a/Web/push_notifications.py b/Web/push_notifications.py index f28d8df..b1831d2 100644 --- a/Web/push_notifications.py +++ b/Web/push_notifications.py @@ -227,6 +227,10 @@ def send_push_notification(username, title, body, icon=None, url='/', reference= sent_count = 0 for subscription in subscriptions: + from Web.modules.emailservice.email import send, send_pdf + if cfg.MODULES.is_enabled('mail'): + #implement the sending + pass success = _send_to_subscription( subscription, title, diff --git a/Web/templates/library_borrowings_admin.html b/Web/templates/library_borrowings_admin.html index 3c8904e..45abadf 100644 --- a/Web/templates/library_borrowings_admin.html +++ b/Web/templates/library_borrowings_admin.html @@ -374,7 +374,7 @@
- +
+ {% if email_service_enabled %} +
+ + +
+ {% endif %} +
- +