From 1fa78b0c5776e41626b36cc08c4a30e08b327f9a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 25 Mar 2022 18:51:40 -0700 Subject: small tweaks to RSS feed --- fatcat_scholar/web.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index ef7a5e1..0f2835e 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -185,11 +185,13 @@ def feed_rss( ) -> fastapi_rss.RSSResponse: # override some query params for feeds + original_query = query.q if query.q: query.q += " doc_type:work" query.offset = None query.filter_time = "past_year" query.sort_order = "time_desc" + query.limit = 20 hits: FulltextHits = process_query(query) @@ -221,7 +223,7 @@ def feed_rss( if rss_items: last_build_date = rss_items[0].pub_date feed = fastapi_rss.RSSFeed( - title=f"IA Scholar: {query.q}", + title=f"IA Scholar Query: {original_query}", link="https://scholar.archive.org/", description="Internet Archive Scholar query results feed", language="en", -- cgit v1.2.3