fixed imports
Code Quality Pipeline / Test (push) Failing after 4m41s
CI Pipeline / Test (pull_request) Failing after 3m43s
CI Pipeline / Build and Publish (pull_request) Has been skipped

This commit is contained in:
Brian Bjarke Jensen
2024-05-07 21:22:25 +02:00
parent 9a625cb6be
commit e3e836c9fa
5 changed files with 13 additions and 9 deletions
+3 -2
View File
@@ -6,7 +6,7 @@ from pathlib import Path
from dotenv import load_dotenv
from core.database import connect
from core.database import total_documents
from core.database import count_documents
if __name__ == '__main__':
# prepare env vars
@@ -17,7 +17,8 @@ if __name__ == '__main__':
# connect to database
collection, db, client = connect()
# get visual communication
num_docs = total_documents(
num_docs = count_documents(
collection=collection,
only_with_annotation=True,
)
print(f"number of annotated documents in database: {num_docs}")