Change behavior of MysqlRedFam to be able to get instance without knowen fam_hash

This commit is contained in:
2015-09-19 19:49:20 +02:00
parent b5ca69077c
commit 8059bb9992
2 changed files with 7 additions and 14 deletions

View File

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