1
2
3 from coprs.views.rss_ns import rss_ns
4 from coprs import app
5 from coprs.helpers import fix_protocol_for_frontend
6 from coprs.logic.coprs_logic import CoprsLogic
7 from flask import render_template, Response
8 from coprs import models
14 """
15 Simple route that returns all projects
16 name, description, link to selected project
17 as rss feed
18
19 """
20
21 coprs = CoprsLogic.get_all().order_by(models.Copr.id.desc()).limit(limit)
22
23 answer = render_template("rss/rss.xml", coprs=coprs)
24
25 return Response(answer, mimetype="text/xml")
26