summaryrefslogtreecommitdiff
path: root/docs/gl_objects/projects.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gl_objects/projects.py')
-rw-r--r--docs/gl_objects/projects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/gl_objects/projects.py b/docs/gl_objects/projects.py
index 8db4ea7..428f357 100644
--- a/docs/gl_objects/projects.py
+++ b/docs/gl_objects/projects.py
@@ -178,11 +178,11 @@ file_content = p.repository_raw_blob(id)
result = project.repository_compare('master', 'branch1')
# get the commits
-for commit in result.commits:
+for commit in result['commits']:
print(commit)
# get the diffs
-for file_diff in result.diffs:
+for file_diff in result['diffs']:
print(file_diff)
# end repository compare