Skip to content

Commit

Permalink
Fix group listing with open and count filters.
Browse files Browse the repository at this point in the history
Return groups with <= edge_count instead of exact match.
  • Loading branch information
sesposito committed Jan 22, 2025
1 parent bf637c5 commit 62c8add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Return correct tournament details in console API leaderboard details endpoint.
- Do not report invalid http RPC ids to prometheus counts.
- Fix Lua runtime short day format option.
- Fix group listing with open and count filters.

## [3.25.0] - 2024-11-25
### Added
Expand Down
2 changes: 1 addition & 1 deletion server/core_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -1772,7 +1772,7 @@ SELECT id, creator_id, name, description, avatar_url, state, edge_count, lang_ta
FROM groups
WHERE disable_time = '1970-01-01 00:00:00 UTC'
AND state = $2
AND edge_count = $3`
AND edge_count <= $3`
if cursor != nil {
params = append(params, cursor.GetState(), cursor.EdgeCount, cursor.Lang, cursor.ID)
query += " AND (disable_time, state, edge_count, lang_tag, id) < ('1970-01-01 00:00:00 UTC', $4, $5, $6, $7)"
Expand Down

0 comments on commit 62c8add

Please sign in to comment.