Commit 330f1177 by Harry Marr

Add args to insert, update

parent 80cc2b92
......@@ -26,7 +26,8 @@ class MongoOperationTracker(object):
# Wrap Cursor._refresh for getting queries
@functools.wraps(self.original_methods['insert'])
def insert(collection_self, doc_or_docs, safe=False, **kwargs):
def insert(collection_self, doc_or_docs, manipulate=True,
safe=False, check_keys=True, **kwargs):
start_time = time.time()
result = self.original_methods['insert'](
collection_self,
......@@ -48,8 +49,8 @@ class MongoOperationTracker(object):
# Wrap Cursor._refresh for getting queries
@functools.wraps(self.original_methods['update'])
def update(collection_self, spec, document, upsert=False, safe=False,
multi=False, **kwargs):
def update(collection_self, spec, document, upsert=False,
maniuplate=False, safe=False, multi=False, **kwargs):
start_time = time.time()
result = self.original_methods['update'](
collection_self,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment