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): def optinReceived(value,key):
if not str: if not value:
return str("") return "no date"
else: else:
dictionary = dict(subString.split(":") for subString in str.split(",")) dictionary = dict(subString.split(":") for subString in value.split(","))
if(key in dictionary): if(key in dictionary):
return dictionary[key] return dictionary[key]
else:
return ' '
def optinStatus(str): def optinStatus(str):
if not str: if not str: