This commit is contained in:
geekan 2023-12-15 00:37:10 +08:00
parent ccecb45b13
commit 222694c329
3 changed files with 16 additions and 5 deletions

View file

@ -74,6 +74,12 @@ class Document(BaseModel):
return None
return str(CONFIG.git_repo.workdir / self.root_path / self.filename)
def __str__(self):
return self.content
def __repr__(self):
return self.content
class Documents(BaseModel):
"""A class representing a collection of documents.