from pymongo import MongoClient 
from lib import logger as _logger

import json 
import os

with open(os.path.join(os.getcwd(), "data", "config.json"), "rb") as f:
    config = json.load(f)

""" REMINDER: MAKE SURE TO CHANGE THE DB STRING AND DB NAME BELOW """
client = MongoClient(f"mongodb+srv://{config['database']['user']}:{config['database']['password']}@xxxx-xxxx.mongodb.net/test?retryWrites=true&w=majority")
db = client.xxx

logger = _logger.Logger(loggingFile=os.path.join(os.getcwd(), "data", "main.log"), database=db)

from pymongo import MongoClient 
from lib import logger as _logger

import json 
import os

with open(os.path.join(os.getcwd(), "data", "config.json"), "rb") as f:
    config = json.load(f)

""" REMINDER: MAKE SURE TO CHANGE THE DB STRING AND DB NAME BELOW """
client = MongoClient(f"mongodb+srv://{config['database']['user']}:{config['database']['password']}@xxxx-xxxx.mongodb.net/test?retryWrites=true&w=majority")
db = client.xxx

logger = _logger.Logger(loggingFile=os.path.join(os.getcwd(), "data", "main.log"), database=db)

REMINDER: MAKE SURE TO CHANGE THE DB STRING AND DB NAME BELOW