Make markpages using new DB/Class structure
Update markpages and RedFamWorker-Code to use the new sqlalchemy based DB ORM Interface
This commit is contained in:
@@ -87,6 +87,9 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
||||
for redfam in self.redfams:
|
||||
redfam.update_status()
|
||||
|
||||
RedFamWorker.flush_db_cache()
|
||||
|
||||
|
||||
@property
|
||||
def redfams(self):
|
||||
"""
|
||||
@@ -168,7 +171,7 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
||||
save_ret = self.put_current( self.new_text, summary=summary )
|
||||
|
||||
# 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_add_status(
|
||||
"marked",
|
||||
title=self.current_page.title(withNamespace=False))
|
||||
|
||||
Reference in New Issue
Block a user