From a65a00058f846d4cc9e373cc34fbad7ab064bb15 Mon Sep 17 00:00:00 2001 From: Shivakumar Date: Mon, 8 Jan 2024 12:43:24 -0800 Subject: [PATCH] Update None type --- .../services/notifications/notificationconfig.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/request-management-api/request_api/services/notifications/notificationconfig.py b/request-management-api/request_api/services/notifications/notificationconfig.py index 7bcc08139..5801726d9 100644 --- a/request-management-api/request_api/services/notifications/notificationconfig.py +++ b/request-management-api/request_api/services/notifications/notificationconfig.py @@ -28,13 +28,13 @@ def getnotificationtypelabel(self, notificationtype): id = NotificationType().getnotificationtypeid(notificationtype) if id is not None: return id['notificationtypelabel'] - return 0 + return None def getnotificationtypeid(self, notificationtype): id = NotificationType().getnotificationtypeid(notificationtype) if id is not None: return id['notificationtypeid'] - return 0 + return None # This method is used to get the notification user type label # It first tries to get the notification user type label from the cache @@ -48,13 +48,13 @@ def getnotificationusertypelabel(self, notificationusertype): id = NotificationUserType().getnotificationusertypesid(notificationusertype) if id is not None: return id['notificationusertypelabel'] - return 0 + return None def getnotificationusertypeid(self, notificationusertype): id = NotificationUserType().getnotificationusertypesid(notificationusertype) if id is not None: return id['notificationusertypeid'] - return 0 + return None def getnotificationdays(self): if 'FOI_NOTIFICATION_DAYS' in os.environ and os.getenv('FOI_NOTIFICATION_DAYS') != '':