File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ def _(mo, pyoso_db_conn):
141141 COUNT(DISTINCT er.repo_id) AS repo_count
142142 FROM oso.stg_opendevdata__ecosystems_repos_recursive er
143143 JOIN oso.stg_opendevdata__ecosystems e ON er.ecosystem_id = e.id
144+ WHERE e.is_crypto = 1
145+ AND e.is_category = 0
144146 GROUP BY e.name
145147 ORDER BY repo_count DESC
146148 LIMIT 20
@@ -382,6 +384,8 @@ def _(mo):
382384 COUNT(DISTINCT er.repo_id) AS repo_count
383385 FROM oso.stg_opendevdata__ecosystems e
384386 JOIN oso.stg_opendevdata__ecosystems_repos_recursive er ON e.id = er.ecosystem_id
387+ WHERE e.is_crypto = 1
388+ AND e.is_category = 0
385389 GROUP BY e.name, e.is_crypto, e.is_chain, e.is_category
386390 ORDER BY repo_count DESC
387391 LIMIT 20
@@ -402,6 +406,8 @@ def _(mo, pyoso_db_conn):
402406 COUNT(DISTINCT er.repo_id) AS repo_count
403407 FROM oso.stg_opendevdata__ecosystems e
404408 JOIN oso.stg_opendevdata__ecosystems_repos_recursive er ON e.id = er.ecosystem_id
409+ WHERE e.is_crypto = 1
410+ AND e.is_category = 0
405411 GROUP BY e.name, e.is_crypto, e.is_chain, e.is_category
406412 ORDER BY repo_count DESC
407413 LIMIT 20
Original file line number Diff line number Diff line change @@ -408,6 +408,8 @@ def _(mo):
408408 JOIN oso.stg_opendevdata__ecosystems e ON err.ecosystem_id = e.id
409409 JOIN oso.int_opendevdata__repositories_with_repo_id r
410410 ON err.repo_id = r.opendevdata_id
411+ WHERE e.is_crypto = 1
412+ AND e.is_category = 0
411413 GROUP BY e.name
412414 ORDER BY matched_repos DESC
413415 LIMIT 15
@@ -428,6 +430,8 @@ def _(mo, pyoso_db_conn):
428430 JOIN oso.stg_opendevdata__ecosystems e ON err.ecosystem_id = e.id
429431 JOIN oso.int_opendevdata__repositories_with_repo_id r
430432 ON err.repo_id = r.opendevdata_id
433+ WHERE e.is_crypto = 1
434+ AND e.is_category = 0
431435 GROUP BY e.name
432436 ORDER BY matched_repos DESC
433437 LIMIT 15
You can’t perform that action at this time.
0 commit comments