mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 20:12:55 +01:00
Updated with department model
This commit is contained in:
parent
500d4a1494
commit
062a0ae7da
12 changed files with 171 additions and 79 deletions
|
|
@ -6,7 +6,7 @@ from typing import Optional, List
|
|||
|
||||
|
||||
class CRUDDocuments(CRUDBase[Document, DocumentCreate, DocumentUpdate]):
|
||||
def get_by_id(self, db: Session, *, id: str) -> Optional[Document]:
|
||||
def get_by_id(self, db: Session, *, id: int) -> Optional[Document]:
|
||||
return db.query(self.model).filter(Document.id == id).first()
|
||||
|
||||
def get_by_filename(self, db: Session, *, file_name: str) -> Optional[Document]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue