Skip to content

Commit

Permalink
fix order
Browse files Browse the repository at this point in the history
  • Loading branch information
warronbebster committed May 30, 2023
1 parent 01d49a8 commit 08c0415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mayor_game/city_calculator/city_calculator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ defmodule MayorGame.CityCalculator do
|> Enum.map(fn city -> city.pollution end)
|> Enum.sum()

MarketHelpers.calculate_market_trades(leftovers |> Enum.map(fn city -> {city.id, city} end) |> Enum.into(%{}))

leftovers
# |> Enum.sort_by(& &1.id)
|> Enum.chunk_every(200)
Expand Down Expand Up @@ -134,6 +132,8 @@ defmodule MayorGame.CityCalculator do
)
end)

MarketHelpers.calculate_market_trades(leftovers |> Enum.map(fn city -> {city.id, city} end) |> Enum.into(%{}))

# :eprof.stop_profiling()
# :eprof.analyze()

Expand Down

0 comments on commit 08c0415

Please sign in to comment.