From c0fa8808a46e3fd6dbb6f38032747d3c687e6597 Mon Sep 17 00:00:00 2001 From: jhurtadosandoval <120607545+jhurtadosandoval@users.noreply.github.com> Date: Wed, 14 Dec 2022 15:16:40 -0800 Subject: [PATCH] Update comment_scraper.py The comment scraper example resulted in a 404 error because comments.get() needed to be replaced with comments.list() --- examples/comments/comment_scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/comments/comment_scraper.py b/examples/comments/comment_scraper.py index 3cc33979..4504eef2 100644 --- a/examples/comments/comment_scraper.py +++ b/examples/comments/comment_scraper.py @@ -33,7 +33,7 @@ def build_comments_list(client, asset_id, comment_list): build_comments_list(client, asset['id'], comment_list) if asset.get('type') == 'file' and asset.get('comment_count') > 0: - comments = client.comments.get(asset['id']) + comments = client.comments.list(asset['id']) for comment in comments: # The 'get_comments" call won't return the asset name # So we'll add it to the dictionary now. @@ -44,7 +44,7 @@ def build_comments_list(client, asset_id, comment_list): # Read about version stacks: https://docs.frame.io/docs/managing-version-stacks versions = client.assets.get_children(asset['id']) for v_asset in versions: - comments = client.comments.get(v_asset['id']) + comments = client.comments.list(v_asset['id']) for comment in comments: comment['asset'] = { 'name': asset['name'] } comment_list.append(comment)