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:
@@ -132,8 +132,12 @@ 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() )
|
||||||
|
|
||||||
# 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 ):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user