bug fixes: read, with source that accepts an sql query

v2.4
Steve Nyemba 13 hours ago
parent bcf25a4e27
commit 990bb343a4

@ -1,6 +1,6 @@
__app_name__ = 'data-transport' __app_name__ = 'data-transport'
__author__ = 'The Phi Technology' __author__ = 'The Phi Technology'
__version__= '2.4.7' __version__= '2.4.8'
__email__ = "info@the-phi.com" __email__ = "info@the-phi.com"
__license__=f""" __license__=f"""
Copyright 2010 - 2024, Steve L. Nyemba Copyright 2010 - 2024, Steve L. Nyemba

@ -102,7 +102,7 @@ class IReader(IO):
""" """
def __init__(self,_agent,_plugins=None,_logger=None): def __init__(self,_agent,_plugins=None,_logger=None):
super().__init__(_agent,_plugins,_logger) super().__init__(_agent,_plugins,_logger)
self._args = if 'args' in _args else None
def _stream (self,_data ): def _stream (self,_data ):
# self.log(action='streaming',object=self._agent._engine.name, input= type(_data).__name__) # self.log(action='streaming',object=self._agent._engine.name, input= type(_data).__name__)
_shape = [] _shape = []
@ -120,7 +120,9 @@ class IReader(IO):
if 'plugins' in _args : if 'plugins' in _args :
self._init_plugins(_args['plugins']) self._init_plugins(_args['plugins'])
if self._args :
_data = self._agent.read(**self._args)
else:
_data = self._agent.read(**_args) _data = self._agent.read(**_args)
_objectName = '.'.join([self._agent.__class__.__module__,self._agent.__class__.__name__]) _objectName = '.'.join([self._agent.__class__.__module__,self._agent.__class__.__name__])

Loading…
Cancel
Save