Remove problem indicating stati when set marked
Remove states which are indicating problems in previous runs if successfully marked article and also whole RedFam [https://fs.golderweb.de/index.php?do=details&task_id=112 FS#112] Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=110 FS#110]
This commit is contained in:
@@ -172,6 +172,12 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
||||
|
||||
# Status
|
||||
if add_ret is None or ( add_ret and save_ret ):
|
||||
self.current_page.redfam.article_remove_status(
|
||||
"note_rej",
|
||||
title=self.current_page.title(withNamespace=False))
|
||||
self.current_page.redfam.article_remove_status(
|
||||
"sav_err",
|
||||
title=self.current_page.title(withNamespace=False))
|
||||
self.current_page.redfam.article_add_status(
|
||||
"marked",
|
||||
title=self.current_page.title(withNamespace=False))
|
||||
|
||||
@@ -560,6 +560,8 @@ class RedFamWorker( RedFam ):
|
||||
not self.article_has_status("marked", title=article):
|
||||
return
|
||||
|
||||
self.status.remove("sav_err")
|
||||
self.status.remove("note_rej")
|
||||
self.status.add( "marked" )
|
||||
|
||||
def get_disc_link( self ):
|
||||
|
||||
Reference in New Issue
Block a user