MCPcopy Index your code
hub / github.com/ndleah/python-mini-project / get_feed_articles

Function get_feed_articles

RSS_Manager/main.py:54–62  ·  view source on GitHub ↗
(request: Request, feed_id: int)

Source from the content-addressed store, hash-verified

52
53@app.get("/feeds_list/{feed_id}")
54async def get_feed_articles(request: Request, feed_id: int):
55 # feed = get_feed_by_id(feed_id)
56 articles = get_articles_for_feed(feed_id)
57 articles_sorted = sorted(
58 articles, key=lambda x: x["published_parsed"], reverse=True
59 )
60 return template_dir.TemplateResponse(
61 "articles_list.html", {"request": request, "articles_sorted": articles_sorted}
62 )

Callers

nothing calls this directly

Calls 1

get_articles_for_feedFunction · 0.90

Tested by

no test coverage detected