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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy