bug fix: mongodb read

pull/1/head
Steve Nyemba 2 years ago
parent f59dcd544f
commit 98c9348f9c

@ -34,7 +34,7 @@ Mostly data scientists that don't really care about the underlying database and
Within the virtual environment perform the following : Within the virtual environment perform the following :
pip install git+https://dev.the-phi.com/git/steve/data-transport.git pip install git+https://github.com/lnyemba/data-transport.git
Once installed **data-transport** can be used as a library in code or a command line interface (CLI), as a CLI it is used for ETL and requires a configuration file. Once installed **data-transport** can be used as a library in code or a command line interface (CLI), as a CLI it is used for ETL and requires a configuration file.

@ -8,7 +8,7 @@ def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname)).read()
args = { args = {
"name":"data-transport", "name":"data-transport",
"version":"1.6.2", "version":"1.6.3",
"author":"The Phi Technology LLC","author_email":"info@the-phi.com", "author":"The Phi Technology LLC","author_email":"info@the-phi.com",
"license":"MIT", "license":"MIT",
"packages":["transport"]} "packages":["transport"]}

@ -92,7 +92,7 @@ class MongoReader(Mongo,Reader):
Mongo.__init__(self,**args) Mongo.__init__(self,**args)
def read(self,**args): def read(self,**args):
if 'mongo' in args or 'cmd' : if 'mongo' in args or 'cmd' in args:
# #
# @TODO: # @TODO:
cmd = args['mongo'] if 'mongo' in args else args['cmd'] cmd = args['mongo'] if 'mongo' in args else args['cmd']

Loading…
Cancel
Save