Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
9 changes: 5 additions & 4 deletions tasks/users_this_week/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@
FROM user_groups
INNER JOIN user ON user_id = ug_user
WHERE ug_group = "bot")
and actor_name not in (SELECT replace(pl_title,"_"," ")
FROM pagelinks
where pagelinks.pl_from = 7352181
and pl_namespace = 2)
and actor_name not in (SELECT replace(lt_title, "_", " ")
FROM pagelinks
inner join linktarget ON lt_id = pl_target_id
WHERE pagelinks.pl_from = 7352181
AND lt_namespace = 2)
GROUP BY actor_name
having COUNT(*) > 1
ORDER BY score DESC,name
Expand Down
9 changes: 5 additions & 4 deletions tasks/users_this_week/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
FROM user_groups
INNER JOIN user ON user_id = ug_user
WHERE ug_group = "bot")
and actor_name not in (SELECT replace(pl_title,"_"," ")
FROM pagelinks
where pagelinks.pl_from = 7352181
and pl_namespace = 2)
and actor_name not in (SELECT replace(lt_title, "_", " ")
FROM pagelinks
inner join linktarget ON lt_id = pl_target_id
WHERE pagelinks.pl_from = 7352181
AND lt_namespace = 2)
GROUP BY actor_name
having COUNT(*) > 1
ORDER BY score DESC,name
Expand Down