Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(840)

Unified Diff: components/ntp_snippets/remote/fetch.py

Issue 2849763003: ntp_snippets: fix ./fetch.py --short (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/remote/fetch.py
diff --git a/components/ntp_snippets/remote/fetch.py b/components/ntp_snippets/remote/fetch.py
index 48f448a3ec72d11d37e4340f7bdf22c574ab72e3..aa753f3e7e4728cff5af1d46f610375ff3b0fe71 100755
--- a/components/ntp_snippets/remote/fetch.py
+++ b/components/ntp_snippets/remote/fetch.py
@@ -195,9 +195,9 @@ def Authenticate(args, headers, client_id, client_secret):
creds.apply(headers)
-def PrintShortResponse(r):
+def PrintShortResponse(j):
now = datetime.datetime.now()
- for category in r.json()["categories"]:
+ for category in j["categories"]:
print("%s: " % category["localizedTitle"])
for suggestion in category["suggestions"]:
attribution = suggestion["attribution"]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698