image_through_model #49
@@ -1,4 +1,3 @@
|
||||
"""Database utils module content."""
|
||||
from __future__ import annotations
|
||||
|
||||
from .connect import connect
|
||||
from .connect_mongodb import connect_mongodb
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
"""
|
||||
Definition of function to connect to database
|
||||
using environment variables.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
"""Definition of function to connect to database using environment
|
||||
variables."""
|
||||
|
||||
import logging
|
||||
import os
|
||||
@@ -11,7 +8,7 @@ from dotenv import load_dotenv
|
||||
from pymongo import MongoClient
|
||||
|
||||
|
||||
def connect():
|
||||
def connect_mongodb():
|
||||
"""Connect to MongoDB using env vars."""
|
||||
# load env vars
|
||||
load_dotenv()
|
||||
Reference in New Issue
Block a user