fixed mypy types
CI Pipeline / Test (pull_request) Successful in 2m23s
CI Pipeline / Build and Publish (./Dockerfile.model, ${{ vars.docker_repo_url }}/${{ gitea.repository }}/model) (pull_request) Successful in 7m3s
CI Pipeline / Build and Publish (./Dockerfile.web_ui, ${{ vars.docker_repo_url }}/${{ gitea.repository }}/web_ui) (pull_request) Successful in 6m13s

This commit is contained in:
brian
2024-10-19 21:37:08 +00:00
parent 7fc4d20262
commit ba0fc050fe
14 changed files with 30 additions and 30 deletions
+2 -3
View File
@@ -5,8 +5,7 @@ from pathlib import Path
from dotenv import load_dotenv
from shared.database import connect
from shared.database import count_documents
from shared.database import connect_mongodb, count_documents
if __name__ == '__main__':
# prepare env vars
@@ -15,7 +14,7 @@ if __name__ == '__main__':
load_dotenv(env_path)
os.environ['MONGO_HOST'] = 'localhost'
# connect to database
collection, db, client = connect()
collection, db, client = connect_mongodb()
# get visual communication
num_docs = count_documents(
collection=collection,