Skip to content

Commit ee66f4a

Browse files
hailiangheJohnVillalovos
authored andcommitted
docs: correct documentation for updating discussion note
Closes #1777
1 parent 3cb2352 commit ee66f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gl_objects/discussions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ You can get and update a single note using the ``*DiscussionNote`` resources::
7070

7171
discussion = resource.discussions.get(discussion_id)
7272
# Get the latest note's id
73-
note_id = discussion.attributes['note'][-1]['id']
73+
note_id = discussion.attributes['notes'][-1]['id']
7474
last_note = discussion.notes.get(note_id)
7575
last_note.body = 'Updated comment'
7676
last_note.save()

0 commit comments

Comments
 (0)