|
|
@ -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 ): |
|
|
|
""" |
|
|
|