diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-10-16 12:30:09 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-10-16 12:30:09 -0700 |
| commit | f20ce5b048df35ddc208485d1f7708b15ac9e49a (patch) | |
| tree | bb42ecc4bd5bacd85f0f690a8cf5939739847a26 /news_feed.py | |
| parent | 3222b1622cadc82e69553844c02e2d17c57311d3 (diff) | |
add hard limit option on polaris chord news scrape
Diffstat (limited to 'news_feed.py')
| -rw-r--r-- | news_feed.py | 2 |
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: |
