MattMakris
2 years agoQrew Cadet
Pipelines/Jinja: How to check if datetime field is empty or not
I'm running into an issue with an 'if' statement I'm using in a field in a Pipeline.{% if a.$prev.client_live_date is not defined %}
%}
TBD
{% else %}
{{a.$prev.client_live_date.strftime('%m/%d/%Y')}}
{% endif
When the pipeline runs, it's throwing this error:
UndefinedError: 'None' has no attribute 'strftime'
Does anyone have a solution for this? Thank you.
------------------------------
Matt Makris
------------------------------