feat:received date fixes

This commit is contained in:
snehalathad@aissel.com 2024-06-20 12:27:51 +05:30
parent 65ebf617c5
commit 1bdc232979
1 changed files with 8 additions and 4 deletions

View File

@ -125,13 +125,17 @@ def getValues():
]
def optinReceived(str,key):
if not str:
return str("")
def optinReceived(value,key):
if not value:
return "no date"
else:
dictionary = dict(subString.split(":") for subString in str.split(","))
dictionary = dict(subString.split(":") for subString in value.split(","))
if(key in dictionary):
return dictionary[key]
else:
return ' '
def optinStatus(str):
if not str: