image_through_model #49

Merged
brian merged 75 commits from image_through_model into main 2024-10-20 00:10:27 +02:00
2 changed files with 4 additions and 8 deletions
Showing only changes of commit 74a9538feb - Show all commits
+1 -2
View File
@@ -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()