For RedFamilies not fetched individually we need to provide the fam hash as index
Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=26 FS#26]
This commit is contained in:
@@ -174,9 +174,6 @@ SET `page_title` = ?, `rev_id` = ?, `status`= ? WHERE `page_id` = ?;'
|
|||||||
|
|
||||||
self.data = self.get_page()
|
self.data = self.get_page()
|
||||||
|
|
||||||
def __del__( self ):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def get_page( self ):
|
def get_page( self ):
|
||||||
"""
|
"""
|
||||||
Retrieves a red page row from MySQL-Database for given page_id
|
Retrieves a red page row from MySQL-Database for given page_id
|
||||||
@@ -253,11 +250,13 @@ SET `red_page_id` = ?, `heading` = ?, `beginning` = ?, `ending` = ?, \
|
|||||||
article0, article1, article2, article3, article4, article5, article6, \
|
article0, article1, article2, article3, article4, article5, article6, \
|
||||||
article7 ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? );'
|
article7 ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? );'
|
||||||
|
|
||||||
def __init__( self ):
|
def __init__( self, fam_hash=None ):
|
||||||
"""
|
"""
|
||||||
Creates a new instance, runs __init__ of parent class
|
Creates a new instance, runs __init__ of parent class
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
self.__fam_hash = fam_hash
|
||||||
|
|
||||||
super().__init__( )
|
super().__init__( )
|
||||||
|
|
||||||
def get_fam( self, fam_hash ):
|
def get_fam( self, fam_hash ):
|
||||||
|
|||||||
Reference in New Issue
Block a user