From 1bdc23297945a717c928dbb2e2ae32f7c9d5bca2 Mon Sep 17 00:00:00 2001 From: "snehalathad@aissel.com" Date: Thu, 20 Jun 2024 12:27:51 +0530 Subject: [PATCH] feat:received date fixes --- .../doctype/optlistprod/optlistprod.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/optmanagementprod/opt_management_production/doctype/optlistprod/optlistprod.py b/optmanagementprod/opt_management_production/doctype/optlistprod/optlistprod.py index 53f5757..a133341 100644 --- a/optmanagementprod/opt_management_production/doctype/optlistprod/optlistprod.py +++ b/optmanagementprod/opt_management_production/doctype/optlistprod/optlistprod.py @@ -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: