rename_shared_module_database #57

Merged
brian merged 10 commits from rename_shared_module_database into main 2024-10-20 22:37:31 +02:00
5 changed files with 3 additions and 5 deletions
Showing only changes of commit 6dba06704c - Show all commits
-1
View File
@@ -3,7 +3,6 @@
from __future__ import annotations
from .classes.dataset import Dataset
from .classes.exceptions import NoDocumentFoundException
from .classes.visual_communication import VisualCommunication
from .utils.connect_mongodb import connect_mongodb
from .utils.count_documents import count_documents
-1
View File
@@ -3,5 +3,4 @@
from __future__ import annotations
from .dataset import Dataset
from .exceptions import NoDocumentFoundException
from .visual_communication import VisualCommunication
+1
View File
@@ -0,0 +1 @@
from .no_document_found import NoDocumentFoundException
@@ -1,7 +1,5 @@
"""Definition of database exception."""
from __future__ import annotations
class NoDocumentFoundException(Exception):
"""Database exception for when no documents are found."""
@@ -6,7 +6,8 @@ import logging
from pymongo.collection import Collection
from shared.mongodb import NoDocumentFoundException, VisualCommunication
from shared.mongodb import VisualCommunication
from shared.mongodb.exceptions import NoDocumentFoundException
def get_visual_communication(