Fixed wrong variable naming
This commit is contained in:
parent
6992b1a6b3
commit
427a482b7c
1 changed files with 4 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ def get_amount_of_games(query: BoardgameFilterParams = Depends(), session: Sessi
|
|||
|
||||
owned_collection = data_connection.get_user_owned_collection(session)
|
||||
|
||||
to_return_boardgames = query.do_filtering(to_return_boardgames)
|
||||
owned_collection = query.do_filtering(owned_collection)
|
||||
|
||||
statistic_dict = {
|
||||
"name":"Amount of games in owned collection",
|
||||
|
|
@ -152,7 +152,7 @@ def get_amount_of_games_over_time(query: BoardgameFilterParams = Depends(), day_
|
|||
|
||||
start_date = games_in_owned_collection[0].acquisition_date
|
||||
|
||||
to_return_boardgames = query.do_filtering(to_return_boardgames)
|
||||
games_in_owned_collection = query.do_filtering(games_in_owned_collection)
|
||||
|
||||
timeline_dict = {}
|
||||
|
||||
|
|
@ -175,7 +175,7 @@ def get_amount_of_games_played_per_year(query: BoardgameFilterParams = Depends()
|
|||
|
||||
all_plays.sort(key= lambda x: x.play_date)
|
||||
|
||||
to_return_boardgames = query.do_filtering(to_return_boardgames)
|
||||
all_plays = query.do_filtering(all_plays)
|
||||
|
||||
all_played_boardgame_ids = []
|
||||
|
||||
|
|
@ -209,7 +209,7 @@ def get_most_expensive_game(query: BoardgameFilterParams = Depends(), top_amount
|
|||
|
||||
most_expensive_games: list[Union[boardgame_classes.OwnedBoardGame, boardgame_classes.OwnedBoardGameExpansion]] = data_connection.get_user_owned_collection(session)
|
||||
|
||||
to_return_boardgames = query.do_filtering(to_return_boardgames)
|
||||
most_expensive_games = query.do_filtering(most_expensive_games)
|
||||
|
||||
most_expensive_games.sort(key=lambda x: x.price_paid, reverse=True)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue