Skip to content

Commit

Permalink
DB-based solver participation guard query fix (#3305)
Browse files Browse the repository at this point in the history
In one of the previous PRs, I removed the ordering which actually broke
the logic.
#3263 (comment)
I actually can't remember why I decided to do so...
  • Loading branch information
squadgazzz authored Mar 3, 2025
1 parent e6ac9d4 commit 5766c47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/database/src/solver_competition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ WITH
SELECT DISTINCT ca.id AS auction_id
FROM competition_auctions ca
WHERE ca.deadline <= $1
ORDER BY ca.id DESC
LIMIT $2
) latest_auctions
JOIN proposed_solutions ps ON ps.auction_id = latest_auctions.auction_id
Expand Down

0 comments on commit 5766c47

Please sign in to comment.