Bläddra i källkod

Make edit summary nicer.

tags/v0.1^2
Ben Kurtovic 12 år sedan
förälder
incheckning
566b1991b7
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      earwigbot/tasks/drn_clerkbot.py

+ 2
- 1
earwigbot/tasks/drn_clerkbot.py Visa fil

@@ -68,7 +68,7 @@ class DRNClerkBot(Task):
"Wikipedia:Dispute resolution noticeboard/Volunteering")
self.very_old_title = cfg.get("veryOldTitle", "User talk:Szhang (WMF)")

clerk_summary = "Updating $3 cases for the [[WP:DRN|dispute resolution noticeboard]]."
clerk_summary = "Updating $3 case$4."
notify_summary = "Notifying user regarding [[WP:DRN|dispute resolution notieboard]] case."
chart_summary = "Updating statistics for the [[WP:DRN|dispute resolution notieboard]]."
self.clerk_summary = self.make_summary(cfg.get("clerkSummary", clerk_summary))
@@ -506,6 +506,7 @@ class DRNClerkBot(Task):
self.logger.warn(log)
return self.run(**kwargs)
summary = self.clerk_summary.replace("$3", str(counter))
summary = summary.replace("$4", "" if counter == 1 else "s")
page.edit(newtext, summary, minor=True, bot=True)
self.logger.info(u"Saved page [[{0}]]".format(page.title))



Laddar…
Avbryt
Spara