Browse Source

Make notifying of very old cases optional.

pull/8/merge
Ben Kurtovic 11 years ago
parent
commit
04e45bde1c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tasks/drn_clerkbot.py

+ 2
- 1
tasks/drn_clerkbot.py View File

@@ -69,6 +69,7 @@ class DRNClerkBot(Task):
self.volunteer_title = cfg.get("volunteers",
"Wikipedia:Dispute resolution noticeboard/Volunteering")
self.very_old_title = cfg.get("veryOldTitle", "User talk:Szhang (WMF)")
self.notify_stale_cases = cf.get("notifyStaleCases", False)

clerk_summary = "Updating case."
notify_summary = "Notifying user regarding [[WP:DRN|dispute resolution noticeboard]] case."
@@ -378,7 +379,7 @@ class DRNClerkBot(Task):
self.update_status(case, self.STATUS_OPEN)

elif age > 60 * 60 * 24 * 10:
if not case.very_old_notified:
if not case.very_old_notified and self.notify_stale_cases:
tmpl = self.tl_notify_stale
title = case.title.replace("|", "|")
template = "{{subst:" + tmpl + "|" + title + "}}"


Loading…
Cancel
Save