aboutsummaryrefslogtreecommitdiffstats
path: root/news_feed.py
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-10-20 19:55:58 -0700
committerPinapelz <yukais@pinapelz.com>2025-10-20 19:55:58 -0700
commit7430d0e25dcf17dcc76c9faac00ff22deb84169a (patch)
tree25462303fa86f47b191fa4ed73b6fe60072bc6be /news_feed.py
parent7c2b3e4dbee74d287016310a9f323f9a34ebbfc1 (diff)
fix: chuni_jp version check condition
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 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:
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage