aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/web.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2022-03-25 18:51:40 -0700
committerBryan Newbold <bnewbold@archive.org>2022-03-25 18:51:40 -0700
commit1fa78b0c5776e41626b36cc08c4a30e08b327f9a (patch)
treecb773f44b0044f3f15559663f7fe9d38612b5f33 /fatcat_scholar/web.py
parentc3624eaad8d5f79c52f192e7978dfa4fe69044f6 (diff)
downloadfatcat-scholar-1fa78b0c5776e41626b36cc08c4a30e08b327f9a.tar.gz
fatcat-scholar-1fa78b0c5776e41626b36cc08c4a30e08b327f9a.zip
small tweaks to RSS feed
Diffstat (limited to 'fatcat_scholar/web.py')
-rw-r--r--fatcat_scholar/web.py4
1 files changed, 3 insertions, 1 deletions
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",