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:
2017-03-10 23:58:48 +01:00
parent 56f326b568
commit 3e69a1c77e
2 changed files with 8 additions and 0 deletions

View File

@@ -172,6 +172,12 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
# Status # Status
if add_ret is None or ( add_ret and save_ret ): 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( self.current_page.redfam.article_add_status(
"marked", "marked",
title=self.current_page.title(withNamespace=False)) title=self.current_page.title(withNamespace=False))

View File

@@ -560,6 +560,8 @@ class RedFamWorker( RedFam ):
not self.article_has_status("marked", title=article): not self.article_has_status("marked", title=article):
return return
self.status.remove("sav_err")
self.status.remove("note_rej")
self.status.add( "marked" ) self.status.add( "marked" )
def get_disc_link( self ): def get_disc_link( self ):