Fix error all current redfams marked when quit
Restructure update_status to make sure, marked is only set when all articles are marked or gone (means deleted or redirect) [https://fs.golderweb.de/index.php?do=details&task_id=111 FS#111] Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=110 FS#110]
This commit is contained in:
@@ -548,13 +548,18 @@ class RedFamWorker( RedFam ):
|
|||||||
if not article:
|
if not article:
|
||||||
break
|
break
|
||||||
|
|
||||||
if self.article_has_status( "note_rej", title=article ):
|
|
||||||
self.status.add( "note_rej" )
|
|
||||||
if self.article_has_status( "sav_err", title=article ):
|
if self.article_has_status( "sav_err", title=article ):
|
||||||
self.status.add( "sav_err" )
|
self.status.add( "sav_err" )
|
||||||
|
return
|
||||||
|
elif self.article_has_status( "note_rej", title=article ):
|
||||||
|
self.status.add( "note_rej" )
|
||||||
|
return
|
||||||
|
|
||||||
|
elif not self.article_has_status("deleted", title=article ) and \
|
||||||
|
not self.article_has_status("redirect", title=article) and\
|
||||||
|
not self.article_has_status("marked", title=article):
|
||||||
|
return
|
||||||
|
|
||||||
if not self.status.has( "sav_err" ) and \
|
|
||||||
not self.status.has( "note_rej" ):
|
|
||||||
self.status.add( "marked" )
|
self.status.add( "marked" )
|
||||||
|
|
||||||
def get_disc_link( self ):
|
def get_disc_link( self ):
|
||||||
|
|||||||
Reference in New Issue
Block a user