We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e994cd3 commit e690232Copy full SHA for e690232
app/modules/analytics/controllers/team_comparison_controller.rb
@@ -7,7 +7,7 @@ module Controllers
7
# with advanced filtering options
8
class TeamComparisonController < Api::V1::BaseController
9
def index
10
- players = fetch_active_players
+ players = fetch_roster_players
11
matches = build_matches_query
12
13
comparison_data = build_comparison_data(players, matches)
@@ -17,8 +17,8 @@ def index
17
18
private
19
20
- def fetch_active_players
21
- organization_scoped(Player).includes(:organization).active
+ def fetch_roster_players
+ organization_scoped(Player).includes(:organization).where(status: %w[active benched trial])
22
end
23
24
def build_matches_query
0 commit comments