Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
fix: incorrect level statistics for Writing
Browse files Browse the repository at this point in the history
Closes: #24
  • Loading branch information
jimmyloi committed Jan 12, 2020
1 parent 7fee245 commit c129327
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ export function addLevelCountAggregation(
'wrLevel0Count'
)
.field(
'COALESCE(SUM(CASE WHEN w.level >= 1 AND v.level <= 3 THEN 1 else 0 END), 0)',
'COALESCE(SUM(CASE WHEN w.level >= 1 AND w.level <= 3 THEN 1 else 0 END), 0)',
'wrLevel1To3Count'
)
.field(
'COALESCE(SUM(CASE WHEN w.level >= 4 AND v.level <= 6 THEN 1 else 0 END), 0)',
'COALESCE(SUM(CASE WHEN w.level >= 4 AND w.level <= 6 THEN 1 else 0 END), 0)',
'wrLevel4To6Count'
)
.field(
'COALESCE(SUM(CASE WHEN w.level >= 7 AND v.level <= 8 THEN 1 else 0 END), 0)',
'COALESCE(SUM(CASE WHEN w.level >= 7 AND w.level <= 8 THEN 1 else 0 END), 0)',
'wrLevel7To8Count'
)
.field(
'COALESCE(SUM(CASE WHEN w.level >= 9 AND v.level <= 10 THEN 1 else 0 END), 0)',
'COALESCE(SUM(CASE WHEN w.level >= 9 AND w.level <= 10 THEN 1 else 0 END), 0)',
'wrLevel9To10Count'
);

Expand Down

0 comments on commit c129327

Please sign in to comment.