bug fix: mongodb read
This commit is contained in:
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 :
|
||||
|
||||
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.
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -8,7 +8,7 @@ def read(fname):
|
|||
return open(os.path.join(os.path.dirname(__file__), fname)).read()
|
||||
args = {
|
||||
"name":"data-transport",
|
||||
"version":"1.6.2",
|
||||
"version":"1.6.3",
|
||||
"author":"The Phi Technology LLC","author_email":"info@the-phi.com",
|
||||
"license":"MIT",
|
||||
"packages":["transport"]}
|
||||
|
|
|
@ -92,7 +92,7 @@ class MongoReader(Mongo,Reader):
|
|||
Mongo.__init__(self,**args)
|
||||
def read(self,**args):
|
||||
|
||||
if 'mongo' in args or 'cmd' :
|
||||
if 'mongo' in args or 'cmd' in args:
|
||||
#
|
||||
# @TODO:
|
||||
cmd = args['mongo'] if 'mongo' in args else args['cmd']
|
||||
|
|
Loading…
Reference in New Issue