Skip to content

Commit

Permalink
refactor: add legacy limit for openrank interface. (#1630)
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <syzhao1988@126.com>
  • Loading branch information
frank-zsy authored Oct 21, 2024
1 parent 6fdea00 commit d217378
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/metrics/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const getRepoOpenrank = async (config: QueryConfig) => {
if (repoWhereClause) whereClause.push(repoWhereClause);
const timeRangeClause = getTimeRangeWhereClause(config);
if (timeRangeClause) whereClause.push(timeRangeClause);
whereClause.push("type='Repo'");
whereClause.push("type='Repo' AND legacy=0");

const sql = `
SELECT
Expand Down Expand Up @@ -61,7 +61,7 @@ export const getUserOpenrank = async (config: QueryConfig) => {
if (userWhereClause) whereClause.push(userWhereClause);
const timeRangeClause = getTimeRangeWhereClause(config);
if (timeRangeClause) whereClause.push(timeRangeClause);
whereClause.push("type='User'");
whereClause.push("type='User' AND legacy=0");

const sql = `
SELECT
Expand Down

0 comments on commit d217378

Please sign in to comment.