Skip to content

Commit 35d67fc

Browse files
authored
Merge pull request #24 from wikimedia/log-comments
Update deleted_prods report to use new comment table
2 parents 0a3f66a + ee39430 commit 35d67fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,12 @@ def deleted_prods( self ):
273273
min(log_timestamp) AS firstdel,
274274
max(log_timestamp) AS lastdel,
275275
group_concat(
276-
log_timestamp," - ",log_comment,"<br>"
276+
log_timestamp," - ",comment_text,"<br>"
277277
ORDER BY log_timestamp ASC
278278
SEPARATOR " "
279279
) as log
280280
FROM categorylinks,page,logging_logindex
281+
LEFT OUTER JOIN comment ON log_comment_id = comment_id
281282
WHERE cl_from=page_id
282283
AND cl_to="All_articles_proposed_for_deletion"
283284
AND page_title=log_title

0 commit comments

Comments
 (0)