Set edit summary for each edit

Each edit of bot needs a edit summary

Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=92 FS#92]
This commit is contained in:
2016-08-30 11:33:54 +02:00
parent 2b93e4cf16
commit 59d4d23c83

View File

@@ -132,8 +132,12 @@ 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() )
# Save
self.put_current( self.new_text )
self.put_current( self.new_text, summary=summary )
def add_disc_notice_template( self ):
"""