Change behavior of MysqlRedFam to be able to get instance without knowen fam_hash
This commit is contained in:
@@ -191,7 +191,8 @@ class RedFamParser( RedFam ):
|
||||
"""
|
||||
|
||||
# We need a connection to our mysqldb
|
||||
self.__mysql = MysqlRedFam( self._fam_hash )
|
||||
self.__mysql = MysqlRedFam( )
|
||||
self.__mysql.get_fam( self._fam_hash )
|
||||
|
||||
if not self.__mysql.data:
|
||||
self.__mysql.add_fam( self._articlesList, self._heading,
|
||||
|
||||
Reference in New Issue
Block a user