mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -261,7 +261,7 @@ def testData():
|
||||
db = client.test
|
||||
col = db["demo"]
|
||||
|
||||
rndStr = mw.getRandomString()
|
||||
rndStr = mw.getRandomString(10)
|
||||
insert_dict = { "name": "v1", "value": rndStr}
|
||||
x = col.insert_one(insert_dict)
|
||||
print(x)
|
||||
|
||||
Reference in New Issue
Block a user