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

This commit is contained in:
2016-08-30 11:51:07 +02:00

View File

@@ -132,8 +132,16 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
# Convert wikicode back to string to save # Convert wikicode back to string to save
self.new_text = str( self.current_wikicode ) 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 # Save
self.put_current( self.new_text ) self.put_current( self.new_text, summary=summary )
def add_disc_notice_template( self ): def add_disc_notice_template( self ):
""" """