Browse Source

Quick bugfix.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
8df4ed8d8c
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      earwigbot/tasks/drn_clerkbot.py

+ 5
- 3
earwigbot/tasks/drn_clerkbot.py View File

@@ -385,9 +385,11 @@ class DRNClerkBot(Task):
age = (datetime.utcnow() - case.file_time).total_seconds()
if age > 60 * 60 * 24 * 5:
if not case.very_old_notified:
template = "{{subst:" + self.tl_notify_stale + "|"
template += case.title.replace("|", "|") + "}}"
notice = _Notice(self.very_old_title, template)
tmpl = self.tl_notify_stale
title = case.title.replace("|", "|")
template = "{{subst:" + tmpl + "|" + title + "}}"
miss = "<!-- Template:DRN stale notice | {0} -->".format(title)
notice = _Notice(self.very_old_title, template, miss)
case.very_old_notified = True
msg = u" {0}: will notify [[{1}]] with '{2}'"
log = msg.format(case.id, self.very_old_title, template)


Loading…
Cancel
Save