diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py index c9593cc5f..428f3578a 100644 --- a/docs/gl_objects/projects.py +++ b/docs/gl_objects/projects.py @@ -178,11 +178,11 @@ result = project.repository_compare('master', 'branch1') # get the commits -for i in commit: - print(result.commits) +for commit in result['commits']: + print(commit) # get the diffs -for file_diff in commit.diffs: +for file_diff in result['diffs']: print(file_diff) # end repository compare