bug fix with mongodb client

This commit is contained in:
Steve Nyemba 2020-11-15 21:19:40 -06:00
parent 9eb46954cd
commit 4b49b0a060
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -48,7 +48,7 @@ class Mongo :
q = self.uid in self.client[self.dbname].list_collection_names()
return p and q
def close(self):
self.db.close()
self.client.close()
class MongoReader(Mongo,Reader):
"""
@ -158,5 +158,7 @@ class MongoWriter(Mongo,Writer):
else:
collection.delete_many({})
self.write(info)
def close(self):
Mongo.close(self)
# collecton.update_one({"_id":self.uid},document,True)