You've already forked Douyin_Web_Live
intro pyyml
This commit is contained in:
Binary file not shown.
@ -1,9 +1,11 @@
|
||||
import pymongo
|
||||
|
||||
from config.helper import config
|
||||
|
||||
class MongoStore:
|
||||
def __init__(self):
|
||||
self.client = pymongo.MongoClient("mongodb://localhost:27017/")
|
||||
self.db = self.client['tiktok']
|
||||
self.client = pymongo.MongoClient(config()['mongo']['uri'])
|
||||
self.db = self.client[config()['mongo']['dbname']]
|
||||
|
||||
def set_collection(self, collection):
|
||||
self.collection = self.db[collection]
|
||||
|
Reference in New Issue
Block a user