[fix] wrong "data" argument value when there is a default one

This commit is contained in:
Maxime Alves LIRMM 2022-09-13 19:15:45 +02:00
parent e9c57049dd
commit fd682ba0e0
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ def route_decorator(fct: FunctionType) -> Coroutine:
if 'data' in fct_args_spec:
if 'data' in fct_args_defaults_dict:
fct_args['data'] = fct_args_defaults_dict
fct_args['data'] = fct_args_defaults_dict['data']
else:
fct_args['data'] = {}