Skip to content

Commit

Permalink
before master merge
Browse files Browse the repository at this point in the history
  • Loading branch information
wschuell committed Nov 6, 2020
1 parent a3ed7fb commit 838f1d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions repo_tools/repo_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@ def get_user_list(self,option='all',time_delay=24*3600):
WHERE uu.github_login IS NOT NULL) AS u
LEFT JOIN followers f
ON f.github_login=u.github_login
AND now() - f.created_at > %s*'1 second'::interval
GROUP BY u.github_login
AND now() - f.created_at < %s*'1 second'::interval
GROUP BY u.github_login,f.github_login
HAVING f.github_login IS NULL
;''',(time_delay,))
else:
Expand All @@ -690,8 +690,8 @@ def get_user_list(self,option='all',time_delay=24*3600):
WHERE uu.github_login IS NOT NULL) AS u
LEFT JOIN followers f
ON f.github_login=u.github_login
AND (julianday('now') - julianday(f.created_at))*24*3600 > ?
GROUP BY u.github_login
AND (julianday('now') - julianday(f.created_at))*24*3600 < ?
GROUP BY u.github_login,f.github_login
HAVING f.github_login IS NULL
;''',(time_delay,))

Expand Down

0 comments on commit 838f1d3

Please sign in to comment.