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 3bfc0817ec Fix "operators_and_hooks_ref.py" to output "sensor" item. 
(#32085)
3bfc0817ec is described below

commit 3bfc0817ecec5d1c8b4214f39fe14c8dd29b7b90
Author: suzuryo97 <[email protected]>
AuthorDate: Fri Jun 23 19:11:54 2023 +0900

    Fix "operators_and_hooks_ref.py" to output "sensor" item. (#32085)
---
 docs/exts/operators_and_hooks_ref.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/exts/operators_and_hooks_ref.py 
b/docs/exts/operators_and_hooks_ref.py
index 82ffc41783..309259ae1d 100644
--- a/docs/exts/operators_and_hooks_ref.py
+++ b/docs/exts/operators_and_hooks_ref.py
@@ -100,7 +100,7 @@ def _prepare_operators_data(tags: set[str] | None):
 
     all_operators_by_integration = _prepare_resource_index(package_data, 
"operators")
     all_hooks_by_integration = _prepare_resource_index(package_data, "hooks")
-    all_sensors_by_integration = _prepare_resource_index(package_data, "hooks")
+    all_sensors_by_integration = _prepare_resource_index(package_data, 
"sensors")
     results = []
 
     for integration in to_display_integration:
@@ -116,7 +116,7 @@ def _prepare_operators_data(tags: set[str] | None):
         if operators:
             item["operators"] = operators
         if sensors:
-            item["hooks"] = sensors
+            item["sensors"] = sensors
         if hooks:
             item["hooks"] = hooks
         if operators or sensors or hooks:

Reply via email to