Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitee66f4a

Browse files
hailiangheJohnVillalovos
authored andcommitted
docs: correct documentation for updating discussion note
Closes#1777
1 parent3cb2352 commitee66f4a

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)

[8]ページ先頭

©2009-2025 Movatter.jp