Add counter increment to mongo.query
This commit is contained in:
parent
0916e666fb
commit
2d9a802d8b
@ -186,4 +186,5 @@ def putMetaHash(target :str, hash :str):
|
|||||||
def query(collection, query):
|
def query(collection, query):
|
||||||
col = db[collection]
|
col = db[collection]
|
||||||
log.out(f"mongo.query: Running query: {query}")
|
log.out(f"mongo.query: Running query: {query}")
|
||||||
|
incrementCounter(collection)
|
||||||
return col.find_one(query)
|
return col.find_one(query)
|
Reference in New Issue
Block a user