refactor: Add space to ingest function
Add space and newline to ingest function Refactor COG-505
This commit is contained in:
parent
1e098ae70d
commit
cc6fbe2a5f
1 changed files with 3 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ from .data_types import IngestionData
|
||||||
|
|
||||||
from cognee.modules.users.models import User
|
from cognee.modules.users.models import User
|
||||||
|
|
||||||
|
|
||||||
def identify(data: IngestionData, user: User) -> str:
|
def identify(data: IngestionData, user: User) -> str:
|
||||||
data_content_hash: str = data.get_identifier()
|
data_content_hash: str = data.get_identifier()
|
||||||
|
|
||||||
# return UUID hash of file contents + owner id
|
# 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}")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue