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

Unified Diff: app/handlers/feed.py

Issue 815943002: Use new readme/changelog fields (Closed) Base URL: https://github.com/dart-lang/pub-dartlang.git@master
Patch Set: Created 6 years 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 | app/handlers/packages.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/handlers/feed.py
diff --git a/app/handlers/feed.py b/app/handlers/feed.py
index f77800c06df6b381832f80c1518df7e49655e772..dabc69313fdb364d17ac335c029d5cfc7b71c362 100644
--- a/app/handlers/feed.py
+++ b/app/handlers/feed.py
@@ -41,9 +41,9 @@ class Feeds(object):
entry.description(
item.latest_version.pubspec
.get("description", "Not Available"))
- readme = item.latest_version.readme
- if not readme is None:
- entry.content(item.latest_version.readme.render(), type='html')
+ readme = item.latest_version.readme_obj
+ if readme is not None:
+ entry.content(readme.render(), type='html')
else:
entry.content("<p>No README Found</p>", type='html')
return feed
« no previous file with comments | « no previous file | app/handlers/packages.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698