mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
16 lines
392 B
Python
16 lines
392 B
Python
import motor.motor_asyncio
|
|
from beanie import init_beanie
|
|
|
|
from config import settings
|
|
from models import TamilBlasterMovie
|
|
|
|
|
|
async def init():
|
|
# Create Motor client
|
|
client = motor.motor_asyncio.AsyncIOMotorClient(
|
|
settings.mongo_uri
|
|
)
|
|
|
|
# Init beanie with the Product document class
|
|
await init_beanie(database=client.streamio, document_models=[TamilBlasterMovie])
|