Skip to content

Commit f2d2054

Browse files
committed
Fix hall of fame aggregations
1 parent e624d23 commit f2d2054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/app/apps/codebattle/lib/codebattle/season_result.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ defmodule Codebattle.SeasonResult do
148148
LEFT JOIN clans c ON c.id = tur.clan_id
149149
WHERE t.grade != 'open'
150150
AND t.state = 'finished'
151-
AND t.started_at >= $2::date
152-
AND t.started_at <= $3::date
151+
AND t.started_at::date >= $2::date
152+
AND t.started_at::date <= $3::date
153153
GROUP BY tur.user_id
154154
),
155155
ranked_data AS (

0 commit comments

Comments
 (0)