Skip to content

Commit

Permalink
default async_map in functionnas_dict declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledoux committed Mar 25, 2021
1 parent 2d20a57 commit 2ffcd70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sqlalchemy_api_handler/serialization/as_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@ def as_dict(value,
@as_dict.register(InstrumentedList)
def as_dict_for_intrumented_list(entities,
column=None,
async_map: Callable=None,
async_map: Callable=default_async_map,
includes: Iterable = None,
mode: str = 'columns-and-includes',
use_async: bool=False):
if async_map is None:
async_map = default_async_map
not_deleted_entities = filter(lambda x: not x.is_soft_deleted(), entities)
dictify = partial(as_dict,
async_map=async_map,
Expand Down

0 comments on commit 2ffcd70

Please sign in to comment.