From 7430d0e25dcf17dcc76c9faac00ff22deb84169a Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Mon, 20 Oct 2025 19:55:58 -0700 Subject: fix: chuni_jp version check condition --- news_feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news_feed.py b/news_feed.py index 58b9f40..8affe1f 100644 --- a/news_feed.py +++ b/news_feed.py @@ -118,7 +118,7 @@ def get_news(news_url: str, version=None) -> list: elif news_url == constants.CHUNITHM_JP_NEWS_SITE: site_data = download_site_as_html(news_url) - if version == [ constants.CHUNITHM_VERSION.VERSE, constants.CHUNITHM_VERSION.X_VERSE ]: + if version in [ constants.CHUNITHM_VERSION.VERSE, constants.CHUNITHM_VERSION.X_VERSE ]: news_posts = sorted(chunithm_jp.parse_chuni_jp_news_site(site_data), key=lambda x: x['timestamp'], reverse=True) news_posts = translate.add_translate_text_to_en(news_posts) if constants.CHUNI_RECURSIVE_IMAGE: -- cgit v1.2.3