refac: notes

This commit is contained in:
Timothy Jaeryang Baek
2025-07-12 00:16:57 +04:00
parent 2fbff741da
commit 9b8d6ed6d2
3 changed files with 47 additions and 12 deletions

View File

@@ -125,11 +125,10 @@ class NoteTable:
if not note:
return None
form_data = form_data.model_dump(exclude_none=True)
form_data = form_data.model_dump(exclude_unset=True)
if "title" in form_data:
note.title = form_data["title"]
if "data" in form_data:
note.data = form_data["data"]
if "meta" in form_data: