Skip to content

Commit

Permalink
fix: fix community openrank names
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy committed Nov 19, 2024
1 parent 407c6eb commit d1561b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/metrics/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,11 @@ FROM
${getGroupTimeClause(config, 'g.created_at')},
g.platform AS platform,
g.repo_id AS repo_id,
argMax(g.repo_name, time) AS repo_name,
argMax(g.org_id, time) AS org_id,
argMax(g.org_login, time) AS org_login,
argMax(g.repo_name, g.created_at) AS repo_name,
argMax(g.org_id, g.created_at) AS org_id,
argMax(g.org_login, g.created_at) AS org_login,
c.actor_id AS actor_id,
argMax(c.actor_login, time) AS actor_login,
argMax(c.actor_login, c.created_at) AS actor_login,
SUM(c.openrank * g.openrank / r.openrank) AS openrank
FROM
(SELECT * FROM community_openrank WHERE ${whereClause.join(' AND ')}) c,
Expand Down

0 comments on commit d1561b1

Please sign in to comment.