minor bug fix

This commit is contained in:
Steve Nyemba 2022-02-10 12:21:04 -06:00
parent bab0040f0c
commit 705a39acbe
1 changed files with 2 additions and 1 deletions

View File

@ -182,7 +182,7 @@ class Reader(Worker):
try:
self.reader = transport.factory.instance(**self._info) ;
# print (self.pipeline)
print (self._info)
# self.rows = self.reader.read(mongo=self.pipeline)
self.rows = self.reader.read(**self.pipeline)
@ -194,6 +194,7 @@ class Reader(Worker):
N = len(self.rows) / self.MAX_ROWS if len(self.rows) > self.MAX_ROWS else 1
N = int(N)
# self.rows = rows
_log = {"context":self.name(), "status":1,"info":{"rows":len(self.rows),"table":self.table,"segments":N}}
self.rows = np.array_split(self.rows,N)