Sfoglia il codice sorgente

Make notifying of very old cases optional.

pull/8/merge
Ben Kurtovic 11 anni fa
parent
commit
04e45bde1c
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      tasks/drn_clerkbot.py

+ 2
- 1
tasks/drn_clerkbot.py Vedi 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 + "}}"


Caricamento…
Annulla
Salva