def prepare_models(self):
        """
        If a database config ws given as argument, apply it to our models
        """
        if self.database_config:
            for model in (self.options.queue_model, self.options.error_model):
                model.database.reset(**self.database_config)
def prepare_models ( self ) : if self . database_config : for model in ( self . options . queue_model , self . options . error_model ) : model . database . reset ( ** self . database_config )
If a database config ws given as argument, apply it to our models