summaryrefslogtreecommitdiff
path: root/src/backend/getnews.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-05 20:19:14 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-06 00:15:42 +0100
commit46a8e7d1d6ad459c78616c9ac076d30b09fb87c8 (patch)
treea44ec4a13bfdcc40e51a449f8dd899d315584bec /src/backend/getnews.py
parentec51bc4be021116013a56a55fc6eb804887c2034 (diff)
have sisyphus print the number of unread news during sync
Diffstat (limited to 'src/backend/getnews.py')
-rw-r--r--src/backend/getnews.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/backend/getnews.py b/src/backend/getnews.py
index b2d2978..cce7bcb 100644
--- a/src/backend/getnews.py
+++ b/src/backend/getnews.py
@@ -84,19 +84,7 @@ def list_all_news():
f"\nArticle {sisyphus.getclr.green}{index + 1}{sisyphus.getclr.reset} ({status}):\n{news}")
-def check_n_news():
- n_news = ld_n_news()
- r_news_index = ld_r_news()
-
- unread_count = len(n_news) - len(r_news_index)
-
- return unread_count
-
-
-def start(check=False, list=False, read=False, unread=False, article_nr=None):
- if check:
- check_n_news()
-
+def start(list=False, read=False, unread=False, article_nr=None):
if list:
list_all_news()