Browse Source

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]
develop
Jonathan Golder 7 years ago
parent
commit
3e69a1c77e
  1. 6
      bots/markpages.py
  2. 2
      lib/redfam.py

6
bots/markpages.py

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

2
lib/redfam.py

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

Loading…
Cancel
Save