Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent c9dd68d890
commit 84aa9a91de
871 changed files with 265870 additions and 27854 deletions
+6
View File
@@ -35,6 +35,7 @@ class NoteCreate(BaseModel):
source: str = "user"
session_id: Optional[str] = None
image_url: Optional[str] = None
gallery_id: Optional[str] = None
repeat: Optional[str] = "none"
sort_order: Optional[int] = None
@@ -50,6 +51,7 @@ class NoteUpdate(BaseModel):
archived: Optional[bool] = None
due_date: Optional[str] = None
image_url: Optional[str] = None
gallery_id: Optional[str] = None
repeat: Optional[str] = None
sort_order: Optional[int] = None
agent_session_id: Optional[str] = None
@@ -89,6 +91,7 @@ def _note_to_dict(note: Note) -> Dict[str, Any]:
"session_id": note.session_id,
"sort_order": note.sort_order or 0,
"image_url": note.image_url,
"gallery_id": getattr(note, "gallery_id", None),
"repeat": note.repeat or "none",
"ai_classification": ai_cls,
"ai_content_hash": getattr(note, "ai_content_hash", None),
@@ -674,6 +677,7 @@ def setup_note_routes(task_scheduler=None, upload_handler=None):
source=body.source,
session_id=body.session_id,
image_url=body.image_url,
gallery_id=body.gallery_id,
repeat=body.repeat or "none",
sort_order=body.sort_order if body.sort_order is not None else 0,
)
@@ -743,6 +747,8 @@ def setup_note_routes(task_scheduler=None, upload_handler=None):
note.due_date = body.due_date
if body.image_url is not None:
note.image_url = body.image_url
if body.gallery_id is not None:
note.gallery_id = body.gallery_id
if body.repeat is not None:
note.repeat = body.repeat
if body.sort_order is not None: