data_migrate
This commit is contained in:
parent
046fb741e2
commit
3f6089653d
|
@ -0,0 +1,20 @@
|
|||
import pymongo
|
||||
|
||||
HOST = "116.63.130.34"
|
||||
PASS = "UTlC9cCoglD1cI1*"
|
||||
USER = "root"
|
||||
PORT = "27021"
|
||||
|
||||
mongo_client = pymongo.MongoClient('mongodb://{}:{}@{}:{}'.format(USER, PASS, HOST, PORT))
|
||||
|
||||
|
||||
def all_data():
|
||||
collection = mongo_client['']['']
|
||||
data = list(collection.find({}, {'_id': False}))
|
||||
|
||||
###
|
||||
|
||||
avatar_id = "623152edf36000004f00124e"
|
||||
|
||||
|
||||
###
|
Loading…
Reference in New Issue