Skip to content

Commit c5f81e8

Browse files
committed
Better compatibility with existing stats page
1 parent 3ed5f70 commit c5f81e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sql/reports/statistics/design/design-f2f-wins.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
SELECT
22
m."userId" AS member_id,
33
m.handle AS handle,
4-
COUNT(DISTINCT s."challengeId")::int AS wins_count
4+
COUNT(DISTINCT s."challengeId")::int AS wins_count,
5+
COUNT(DISTINCT s."challengeId")::int AS count
56
FROM reviews.submission s
67
JOIN challenges."Challenge" c
78
ON c.id = s."challengeId"
@@ -16,4 +17,3 @@ WHERE s.placement = 1
1617
AND ct.abbreviation = 'F2F'
1718
GROUP BY m."userId", m.handle
1819
ORDER BY wins_count DESC, handle ASC;
19-

sql/reports/statistics/design/ui-design-wins.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
SELECT
22
m."userId" AS member_id,
33
m.handle AS handle,
4-
COUNT(DISTINCT s."challengeId")::int AS wins_count
4+
COUNT(DISTINCT s."challengeId")::int AS wins_count,
5+
COUNT(DISTINCT s."challengeId")::int AS count
56
FROM reviews.submission s
67
JOIN challenges."Challenge" c
78
ON c.id = s."challengeId"
@@ -16,4 +17,3 @@ WHERE s.placement = 1
1617
AND ct.abbreviation = 'CH'
1718
GROUP BY m."userId", m.handle
1819
ORDER BY wins_count DESC, handle ASC;
19-

0 commit comments

Comments
 (0)