Skip to content

Commit

Permalink
Update None type
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivakumar authored and Shivakumar committed Jan 8, 2024
1 parent a32c3f7 commit a65a000
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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') != '':
Expand Down

0 comments on commit a65a000

Please sign in to comment.