def one_or_more_timeref_redblk(note): note = n2vals(note) timeCount = ca.daysofweek(note)['daysofweek'] if type( ca.daysofweek(note)) == dict else ca.daysofweek(note)[1] timeCount += ca.months(note)['months'] if type( ca.months(note)) == dict else ca.months(note)[1] return 'red' if timeCount > 0 else 'black'
def one_or_more_daysofweek_redblk(note): note = n2vals(note) lines = ca.daysofweek(note) if type(lines) == dict: val = lines['daysofweek'] else: val = lines[1] return 'red' if lines > 0 else 'black'
def one_or_more_timeref_redblk(note): note = n2vals(note) timeCount = ca.daysofweek(note)['daysofweek'] if type(ca.daysofweek(note)) == dict else ca.daysofweek(note)[1] timeCount += ca.months(note)['months'] if type(ca.months(note)) == dict else ca.months(note)[1] return 'red' if timeCount > 0 else 'black'