Skip to content

Commit e6554f6

Browse files
committed
Limit search
1 parent e669a24 commit e6554f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Server/Api/ReplayController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ [FromQuery] string query
8686

8787
var found = ReplayParser.SearchReplays(searchMode, query, _context);
8888
// Order found replays by date
89-
found = found.OrderByDescending(r => r.Date ?? DateTime.MinValue).ToList();
89+
found = found.OrderByDescending(r => r.Date ?? DateTime.MinValue).Take(32 * 3).ToList();
9090

9191
return Ok(found);
9292
}

0 commit comments

Comments
 (0)