Skip to content
Browse files

[bug 681807] Exclude archived articles from Related Articles.

  • Loading branch information...
1 parent dc49814 commit 3ff58fe145ab97b0a3740c625310e9052d8febae James Socol committed Aug 31, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 apps/wiki/cron.py
View
3 apps/wiki/cron.py
@@ -59,7 +59,8 @@ def calculate_related_documents():
d2.locale = d1.locale AND
d2.category = d1.category AND
d1.current_revision_id IS NOT NULL AND
- d2.current_revision_id IS NOT NULL
+ d2.current_revision_id IS NOT NULL AND
+ d2.is_archived = 0
GROUP BY
t1.object_id,
t2.object_id""")

0 comments on commit 3ff58fe

Please sign in to comment.
Something went wrong with that request. Please try again.