Python error:DeprecationWarning: count is deprecated. Use Collection.count_documents instead.
DeprecationWarning: count is deprecated. Use Collection.count_documents instead.
How to avoid this error?
def get_registered_user():
users = collection_users.find({'regDate': regDate}).count()
pprint.pprint("users:" + str(users))
No any search results
You already invited:
2 Answers
Amos
Upvotes from:
Yulian Cheng - hello
Upvotes from: