aboutsummaryrefslogtreecommitdiffstats
path: root/news_feed.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-10-16 12:30:09 -0700
committerPinapelz <yukais@pinapelz.com>2025-10-16 12:30:09 -0700
commitf20ce5b048df35ddc208485d1f7708b15ac9e49a (patch)
treebb42ecc4bd5bacd85f0f690a8cf5939739847a26 /news_feed.py
parent3222b1622cadc82e69553844c02e2d17c57311d3 (diff)
add hard limit option on polaris chord news scrape
Diffstat (limited to 'news_feed.py')
-rw-r--r--news_feed.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/news_feed.py b/news_feed.py
index 05378ca..1e4021c 100644
--- a/news_feed.py
+++ b/news_feed.py
@@ -73,7 +73,7 @@ def get_news(news_url: str, version=None) -> list:
elif news_url == constants.POLARIS_CHORD_NEWS_SITE:
site_data = download_site_as_html(news_url)
- news_posts = sorted(polaris_chord.parse_polaris_chord_news_site(site_data), key=lambda x: x['timestamp'], reverse=True)
+ news_posts = sorted(polaris_chord.parse_polaris_chord_news_site(site_data, constants.POLARIS_CHORD_RECENT_NEWS_LIMIT), key=lambda x: x['timestamp'], reverse=True)
news_posts = translate.add_translate_text_to_en(news_posts, iidx.KEY_TERMS_TL)
elif news_url == constants.EAMUSE_APP_API_ROUTE:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage