|
@ -165,6 +165,7 @@ class RedPage: |
|
|
# Increment line counter |
|
|
# Increment line counter |
|
|
i += 1 |
|
|
i += 1 |
|
|
else: |
|
|
else: |
|
|
|
|
|
RedFamParser.flush_db_cache() |
|
|
self._parsed = True |
|
|
self._parsed = True |
|
|
|
|
|
|
|
|
def __update_db( self ): |
|
|
def __update_db( self ): |
|
@ -180,3 +181,10 @@ class RedPage: |
|
|
status = 0 |
|
|
status = 0 |
|
|
|
|
|
|
|
|
self.__mysql.update_page( self.page._revid, self.page.title(), status ) |
|
|
self.__mysql.update_page( self.page._revid, self.page.title(), status ) |
|
|
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
|
|
def flush_db_cache( cls ): |
|
|
|
|
|
""" |
|
|
|
|
|
Calls flush method of Mysql Interface class |
|
|
|
|
|
""" |
|
|
|
|
|
MysqlRedPage.flush() |
|
|