This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 285f037dbc Remove decorator from rendering fields example (#38827)
285f037dbc is described below

commit 285f037dbcc0f5e23c2d6ac99bfd6cab86c96ac3
Author: Elad Kalif <45845474+elad...@users.noreply.github.com>
AuthorDate: Mon Apr 8 19:09:17 2024 +0300

    Remove decorator from rendering fields example (#38827)
    
    * Remove decorator from rendering fields example
    
    * fix
---
 docs/apache-airflow/core-concepts/operators.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/apache-airflow/core-concepts/operators.rst 
b/docs/apache-airflow/core-concepts/operators.rst
index c7193789bc..0330ef43fb 100644
--- a/docs/apache-airflow/core-concepts/operators.rst
+++ b/docs/apache-airflow/core-concepts/operators.rst
@@ -246,9 +246,9 @@ you can pass ``render_template_as_native_obj=True`` to the 
DAG as follows:
         return json.loads(data_string)
 
 
-    @task(task_id="transform")
     def transform(order_data):
         print(type(order_data))
+        total_order_value = 0
         for value in order_data.values():
             total_order_value += value
         return {"total_order_value": total_order_value}

Reply via email to