Add counter increment to mongo.query

This commit is contained in:
Fred Boniface 2023-05-31 23:09:31 +01:00
parent 0916e666fb
commit 2d9a802d8b
1 changed files with 1 additions and 0 deletions

View File

@ -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)