From c69c2ee3a5a7dccd1a1dc7af0e9605c0ed0779f2 Mon Sep 17 00:00:00 2001 From: Kanstantsin Kamkou Date: Thu, 19 Nov 2015 11:30:31 +0100 Subject: [PATCH] Improve the ranking logic, add forks, refs #127 --- gitmostwanted/tasks/repo_stars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitmostwanted/tasks/repo_stars.py b/gitmostwanted/tasks/repo_stars.py index 2b866b6..150e1e8 100644 --- a/gitmostwanted/tasks/repo_stars.py +++ b/gitmostwanted/tasks/repo_stars.py @@ -24,7 +24,7 @@ def stars_mature(num_days): TABLE_DATE_RANGE( githubarchive:day.events_, TIMESTAMP('{date_from}'), CURRENT_TIMESTAMP() ) - WHERE repo.id = {id} AND type = 'WatchEvent' + WHERE repo.id = {id} AND type IN ('WatchEvent', 'ForkEvent') GROUP BY y, doy """ jobs = []