Skip to content

Commit

Permalink
Actually use the decklists_with_desired_cards CTE in the decklist sea…
Browse files Browse the repository at this point in the history
…rch.
  • Loading branch information
Jason Gessner authored and Jason Gessner committed Oct 10, 2024
1 parent 321ae1c commit 0d90d8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/AppBundle/Service/DecklistManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ public function find(int $start = 0, int $limit = 30, Request $request, $cardsDa
// Uses $cards_code because that is the number the user specified, not the number of printings.
$params[] = count($cards_code);
$types[] = \PDO::PARAM_INT;
$joins[] = "join decklists_with_desired_cards as dwdc ON d.id = dwdc.decklist_id";
}

// If packs are specified, things get complicated because we will be filtering OUT decklists that contain cards NOT IN any of the selected packs.
Expand Down

0 comments on commit 0d90d8c

Please sign in to comment.