···257 repo_star_counts as (
258 select
259 s.repo_at,
260- count(*) as star_count
261 from stars s
262 join recent_starred_repos rsr on s.repo_at = rsr.repo_at
0263 group by s.repo_at
264 )
265 select rsc.repo_at
266 from repo_star_counts rsc
267- order by rsc.star_count desc
268 limit 8
269 `
270
···257 repo_star_counts as (
258 select
259 s.repo_at,
260+ count(*) as stars_gained_last_week
261 from stars s
262 join recent_starred_repos rsr on s.repo_at = rsr.repo_at
263+ where s.created >= datetime('now', '-7 days')
264 group by s.repo_at
265 )
266 select rsc.repo_at
267 from repo_star_counts rsc
268+ order by rsc.stars_gained_last_week desc
269 limit 8
270 `
271