From 21ef8421378428dcff86a98fcdab10cd875a9e00 Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Sun, 17 May 2020 22:53:54 -0500 Subject: [PATCH] bug fix --- transport/couch.py | 2 +- transport/mongo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/couch.py b/transport/couch.py index 9e9bf93..8e02a4e 100644 --- a/transport/couch.py +++ b/transport/couch.py @@ -126,7 +126,7 @@ class CouchReader(Couch,Reader): for row in content: yield row - def read(self,size=-1): + def read(self,**args): if self.filename is not None: self.stream() else: diff --git a/transport/mongo.py b/transport/mongo.py index 48c1bc8..72a439c 100644 --- a/transport/mongo.py +++ b/transport/mongo.py @@ -39,7 +39,7 @@ class Mongo : self.client = MongoClient(host) 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] def isready(self):