[fix] wrong "data" argument value when there is a default one
This commit is contained in:
parent
e9c57049dd
commit
fd682ba0e0
|
@ -78,7 +78,7 @@ def route_decorator(fct: FunctionType) -> Coroutine:
|
||||||
|
|
||||||
if 'data' in fct_args_spec:
|
if 'data' in fct_args_spec:
|
||||||
if 'data' in fct_args_defaults_dict:
|
if 'data' in fct_args_defaults_dict:
|
||||||
fct_args['data'] = fct_args_defaults_dict
|
fct_args['data'] = fct_args_defaults_dict['data']
|
||||||
else:
|
else:
|
||||||
fct_args['data'] = {}
|
fct_args['data'] = {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue