From 13b01fe4aa895aa4d6ee538d40f82d3a3abd7ea2 Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Wed, 10 Jan 2024 12:47:20 +0530 Subject: [PATCH] chore: linting fixed --- frappe/push_notification.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frappe/push_notification.py b/frappe/push_notification.py index 8a15198650..1a17eb86d7 100644 --- a/frappe/push_notification.py +++ b/frappe/push_notification.py @@ -184,12 +184,14 @@ class PushNotification: """ notification_settings = frappe.get_doc("Push Notification Settings") if notification_settings.api_key and notification_settings.api_secret: - return notification_settings.api_key, notification_settings.get_password('api_secret') + return notification_settings.api_key, notification_settings.get_password("api_secret") else: # Generate new credentials token = frappe.generate_hash(length=48) # store the token in the redis cache - frappe.cache().set_value(f"{self._site_name}:push_relay_registration_token", token, expires_in_sec=600) + frappe.cache().set_value( + f"{self._site_name}:push_relay_registration_token", token, expires_in_sec=600 + ) body = { "endpoint": self._site_name, "protocol": self._site_protocol,