This commit is contained in:
Steve Nyemba 2020-05-17 22:53:54 -05:00
parent d5ba648abf
commit 21ef842137
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class CouchReader(Couch,Reader):
for row in content: for row in content:
yield row yield row
def read(self,size=-1): def read(self,**args):
if self.filename is not None: if self.filename is not None:
self.stream() self.stream()
else: else:

View File

@ -39,7 +39,7 @@ class Mongo :
self.client = MongoClient(host) self.client = MongoClient(host)
self.uid = args['doc'] #-- document identifier self.uid = args['doc'] #-- document identifier
self.dbname = args['dbname'] if 'db' in args else args['db'] self.dbname = args['dbname'] if 'dbname' in args else args['db']
self.db = self.client[self.dbname] self.db = self.client[self.dbname]
def isready(self): def isready(self):