Skip to content

Commit

Permalink
modified: src/business_logic/formation/scrap/search_formation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel-Dijoux committed Jan 23, 2024
1 parent d3eba92 commit a33246d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/business_logic/formation/scrap/search_formation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def search_formations(

formated_formations = format_formations(data["results"])

return FormationsWithTotal(data["total"], formated_formations)
return FormationsWithTotal(total=data["total"], formations=formated_formations)


def auth_search_formations(
Expand All @@ -24,4 +24,4 @@ def auth_search_formations(
data = get_raw_data(limit=limit, offset=offset, query=query)
formated_formations = format_formation_with_is_favorite(user_id, data["results"])

return FormationsWithTotal(data["total"], formated_formations)
return FormationsWithTotal(total=data["total"], formations=formated_formations)

0 comments on commit a33246d

Please sign in to comment.