From cc6fbe2a5fc750b206d763e3ce45f16c9a371b79 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Fri, 6 Dec 2024 13:48:39 +0100 Subject: [PATCH] refactor: Add space to ingest function Add space and newline to ingest function Refactor COG-505 --- cognee/modules/ingestion/identify.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cognee/modules/ingestion/identify.py b/cognee/modules/ingestion/identify.py index 776932683..977ff3f0b 100644 --- a/cognee/modules/ingestion/identify.py +++ b/cognee/modules/ingestion/identify.py @@ -3,7 +3,9 @@ from .data_types import IngestionData from cognee.modules.users.models import User + def identify(data: IngestionData, user: User) -> str: data_content_hash: str = data.get_identifier() + # return UUID hash of file contents + owner id - return uuid5(NAMESPACE_OID,f"{data_content_hash}{user.id}") + return uuid5(NAMESPACE_OID, f"{data_content_hash}{user.id}")