File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def callback(
88
88
cache_args_to_ignore : Optional [list ] = None ,
89
89
cache_ignore_triggered = True ,
90
90
on_error : Optional [Callable [[Exception ], Any ]] = None ,
91
- api_path : Optional [str ] = None ,
91
+ api_endpoint : Optional [str ] = None ,
92
92
** _kwargs ,
93
93
) -> Callable [..., Any ]:
94
94
"""
@@ -227,7 +227,7 @@ def callback(
227
227
manager = manager ,
228
228
running = running ,
229
229
on_error = on_error ,
230
- api_path = api_path ,
230
+ api_endpoint = api_endpoint ,
231
231
)
232
232
233
233
@@ -648,9 +648,9 @@ def register_callback(
648
648
649
649
# pylint: disable=too-many-locals
650
650
def wrap_func (func ):
651
- if _kwargs .get ("api_path " ):
652
- api_path = _kwargs .get ("api_path " )
653
- callback_api_paths [api_path ] = func
651
+ if _kwargs .get ("api_endpoint " ):
652
+ api_endpoint = _kwargs .get ("api_endpoint " )
653
+ callback_api_paths [api_endpoint ] = func
654
654
655
655
if background is None :
656
656
background_key = None
Original file line number Diff line number Diff line change @@ -809,7 +809,6 @@ async def _parse_body_async():
809
809
return _parse_body_async
810
810
811
811
for path , func in self .callback_api_paths .items ():
812
- print (path )
813
812
if asyncio .iscoroutinefunction (func ):
814
813
self ._add_url (path , make_parse_body_async (func ), ["POST" ])
815
814
else :
You can’t perform that action at this time.
0 commit comments