refac: notes
This commit is contained in:
1 parent
2fbff741da
commit
9b8d6ed6d2
3 files changed
+47
-12
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user