mirror of
https://github.com/basicmachines-co/basic-memory
synced 2026-06-21 13:47:35 +00:00
document tests
This commit is contained in:
@@ -6,6 +6,7 @@ from pathlib import Path
|
||||
from typing import Optional, Dict, Any, Sequence
|
||||
|
||||
import yaml
|
||||
from icecream import ic
|
||||
from loguru import logger
|
||||
|
||||
from basic_memory.models import Document
|
||||
@@ -121,6 +122,7 @@ class DocumentService(BaseService[DocumentRepository]):
|
||||
# 4. Update DB with checksum to mark completion
|
||||
checksum = await self.compute_checksum(content_with_frontmatter)
|
||||
doc = await self.repository.update(doc.id, {"checksum": checksum})
|
||||
ic(doc)
|
||||
return doc
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user