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: