Browse Source

Merge branch 'fs#92-mark-done-edit-summary' into fs#88-mark-pages-bot

develop
Jonathan Golder 8 years ago
parent
commit
c19f642d11
  1. 10
      bots/markpages.py

10
bots/markpages.py

@ -132,8 +132,16 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
# Convert wikicode back to string to save
self.new_text = str( self.current_wikicode )
# Define edit summary
summary = jogobot.config["red.markpages"]["mark_done_summary"].format(
reddisc=self.current_page.redfam.get_disc_link() ).strip()
# Make sure summary starts with "Bot:"
if not summary[:len("Bot:")] == "Bot:":
summary = "Bot: " + summary.strip()
# Save
self.put_current( self.new_text )
self.put_current( self.new_text, summary=summary )
def add_disc_notice_template( self ):
"""

Loading…
Cancel
Save