Skip to content

Commit cf15b7f

Browse files
authored
Blocked users are unlikely to act on their ToDo's
1 parent a0b04b9 commit cf15b7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gitlab_todos_by_users

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ cursor = db.cursor()
1818
cursor.execute(
1919
"SELECT username, COUNT(username) AS count FROM todos"
2020
" JOIN users ON users.id = todos.user_id WHERE todos.state != 'done'"
21+
" AND users.state = 'active'"
2122
" GROUP BY username ORDER BY count DESC")
2223

2324
for row in cursor.fetchall():

0 commit comments

Comments
 (0)