~cedric/freshermeat

7d3d941ae41fc8141a4ebc5c9ccc6ede84d216d1 — Cédric Bonhomme a month ago fa79f80 master
fix: News object has no attribute published_at.
2 files changed, 4 insertions(+), 4 deletions(-)

M freshermeat/web/views/project.py
M freshermeat/web/views/views.py
M freshermeat/web/views/project.py => freshermeat/web/views/project.py +2 -2
@@ 222,8 222,8 @@ def recent_news(project_name=None):
        fe.title("{} - {}".format(a_news.project.name, a_news.title))
        fe.description(a_news.content)
        fe.link(href=a_news.link)
        fe.updated(a_news.published_at.replace(tzinfo=timezone.utc))
        fe.published(a_news.published_at.replace(tzinfo=timezone.utc))
        fe.updated(a_news.published.replace(tzinfo=timezone.utc))
        fe.published(a_news.published.replace(tzinfo=timezone.utc))
    atomfeed = fg.atom_str(pretty=True)
    return atomfeed


M freshermeat/web/views/views.py => freshermeat/web/views/views.py +2 -2
@@ 148,8 148,8 @@ def recent_news():
        fe.title("{} - {}".format(a_news.project.name, a_news.title))
        fe.description(a_news.content)
        fe.link(href=a_news.link)
        fe.updated(a_news.published_at.replace(tzinfo=timezone.utc))
        fe.published(a_news.published_at.replace(tzinfo=timezone.utc))
        fe.updated(a_news.published.replace(tzinfo=timezone.utc))
        fe.published(a_news.published.replace(tzinfo=timezone.utc))
    atomfeed = fg.atom_str(pretty=True)
    return atomfeed