| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -70,7 +70,7 @@ You can get and update a single note using the ``*DiscussionNote`` resources:: | |||
| 70 | 70 | ||
| 71 | 71 | discussion = resource.discussions.get(discussion_id) | |
| 72 | 72 | # Get the latest note's id | |
| 73 | - note_id = discussion.attributes['note'][-1]['id'] | ||
| 73 | + note_id = discussion.attributes['notes'][-1]['id'] | ||
| 74 | 74 | last_note = discussion.notes.get(note_id) | |
| 75 | 75 | last_note.body = 'Updated comment' | |
| 76 | 76 | last_note.save() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments