Commit
·
73caaf7
1
Parent(s):
cd7a4df
ignore in progress month
Browse files- lib/queries.ts +2 -1
lib/queries.ts
CHANGED
@@ -18,6 +18,7 @@ export const FETCH_CHART_DATA_QUERY = `
|
|
18 |
COUNT(*) FILTER (WHERE type = 'dataset') AS datasets,
|
19 |
COUNT(*) FILTER (WHERE type = 'space') AS spaces
|
20 |
FROM all_data
|
|
|
21 |
GROUP BY month
|
22 |
ORDER BY month
|
23 |
`
|
@@ -88,4 +89,4 @@ export const FETCH_TOP_BASE_MODELS_TABLE_QUERY = `
|
|
88 |
GROUP BY model
|
89 |
ORDER BY finetunes DESC
|
90 |
LIMIT 10
|
91 |
-
`
|
|
|
18 |
COUNT(*) FILTER (WHERE type = 'dataset') AS datasets,
|
19 |
COUNT(*) FILTER (WHERE type = 'space') AS spaces
|
20 |
FROM all_data
|
21 |
+
WHERE month < DATE_TRUNC('month', CURRENT_DATE)
|
22 |
GROUP BY month
|
23 |
ORDER BY month
|
24 |
`
|
|
|
89 |
GROUP BY model
|
90 |
ORDER BY finetunes DESC
|
91 |
LIMIT 10
|
92 |
+
`
|