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:
2017-03-08 00:01:36 +01:00
parent 43e31c108a
commit 844fee52ae
2 changed files with 6 additions and 30 deletions

View File

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