diff --git a/app/app.py b/app/app.py index ba3b8ab..4c05cd8 100644 --- a/app/app.py +++ b/app/app.py @@ -27,6 +27,13 @@ def applist_history(): data = json.loads(open("./app/scripts/appListsHistory/count_history.json").read()) return render_template('applist_history.html', data=data) +@main.route('/apps.rss') +def apps_rss(): + file_ = open("./app/scripts/appListsHistory/atom.xml").read() + response = make_response(file_) + response.headers['Content-Type'] = 'application/rss+xml' + return response + @main.route('/pullrequests') def pullrequests(): diff --git a/app/scripts/appListsHistory/script.py b/app/scripts/appListsHistory/script.py index 1dc0bb2..2042044 100644 --- a/app/scripts/appListsHistory/script.py +++ b/app/scripts/appListsHistory/script.py @@ -120,7 +120,7 @@ def make_rss_feed(): for diff in diffs(): fe = fg.add_entry() - fe.id(diff["end"].strftime("%y-%m-%d")) + fe.id('https://github.com/YunoHost/Apps/#'+diff["end"].strftime("%y-%m-%d")) fe.title('Changes between %s and %s' % (diff["begin"].strftime("%b %d"), diff["end"].strftime("%b %d"))) fe.link(href='https://github.com/YunoHost/apps/commits/master/community.json') fe.content(jinja2.Template(open("rss_template.html").read()).render(data=diff), type="html")