9 lines
269 B
Python
9 lines
269 B
Python
from modules.DB import UseDB
|
|
|
|
db = UseDB("events")
|
|
for i in db.find_document({}):
|
|
print(i)
|
|
# db.del_document({"name": i["name"]})
|
|
# db.update_document({"name": "test not bad"}, {"probability": 50})
|
|
db.update_document({"name": "test bad "}, {"probability": 50})
|