Commit 57fa4cb3 by 文周繁

feat: count_documents add filter

parent 0a45739f
...@@ -130,7 +130,7 @@ def main(argv): ...@@ -130,7 +130,7 @@ def main(argv):
# 获取二进制程序 # 获取二进制程序
binary_collection = db["binary"] binary_collection = db["binary"]
if binary_collection.count_documents() == 1: if binary_collection.count_documents({}) == 1:
binary_ret = binary_collection.find_one() binary_ret = binary_collection.find_one()
binary_software = binary_file_path + db_name binary_software = binary_file_path + db_name
binary_software_file = open(binary_software, 'wb') binary_software_file = open(binary_software, 'wb')
......
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