The Jinja statement you provided is checking if the key “update_time” is present in the record['data']
dictionary. If “update_time” is not present, it will return the value of config['updated_from']
. If “update_time” is present, it will return the value of record['data']['update_time']
. Here’s a breakdown of the statement: - config['updated_from']
: This part of the statement gets the value of ‘updated_from’ from the config
dictionary. - "update_time" not in record['data']
: This part of the statement checks if the key “update_time” is not present in the record['data']
dictionary. - record['data']['update_time']
: This part of the statement gets the value of “update_time” from the record['data']
dictionary. So, if “update_time” is not present in record['data']
, the value of config['updated_from']
will be returned. If “update_time” is present in record['data']
, the value of record['data']['update_time']
will be returned. Please note that this is a general explanation of the Jinja statement you provided. The actual behavior might vary depending on the context in which this statement is used. For more information, you can refer to the Jinja documentation.