You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When getting the body of a note with get_note. The body is none
note = joplinApi.get_note("123456")
print(note.body) # this is none
But if you do:
note = joplinApi.get_note("123456", fields="body")
print(note.body) # this return the body string
The second note still is NoteData type, but with no id, no title, only body
The method to access the body of a note seems inconsistent, and I don't understand why those two NoteData are separated and if that behavior is expected or if it has something to do with the dataclasses merge (#17)
The text was updated successfully, but these errors were encountered:
NB: Joppy is a thin API wrapper. Each request returns a separate object. There is no implicit merging of NoteData objects. That means if you want to do an action on the same note, you would have to pass the id. If you want to operate on the note objects directly, you might take a look at https://github.com/S73ph4n/python_joplin (not sure if there is any development activity, though).
When getting the body of a note with get_note. The body is none
But if you do:
The second note still is NoteData type, but with no id, no title, only body
The method to access the body of a note seems inconsistent, and I don't understand why those two NoteData are separated and if that behavior is expected or if it has something to do with the dataclasses merge (#17)
The text was updated successfully, but these errors were encountered: