refac: notes

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

No files matched your search

+1 -2
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: