summaryrefslogtreecommitdiff
path: root/src/backend/syncall.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/syncall.py')
-rw-r--r--src/backend/syncall.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/backend/syncall.py b/src/backend/syncall.py
index 5cbcd8f..ac53d13 100644
--- a/src/backend/syncall.py
+++ b/src/backend/syncall.py
@@ -32,6 +32,7 @@ def start(gfx_ui=False):
bhst_addr = sisyphus.getenv.bhst_addr()
is_sane = sisyphus.checkenv.sanity()
is_online = sisyphus.checkenv.connectivity()
+ unread_count = sisyphus.checkenv.news()
if is_online != 1:
if gfx_ui:
@@ -48,6 +49,15 @@ def start(gfx_ui=False):
else:
if is_sane == 1:
sync_evrth()
+ if gfx_ui:
+ print(f"\n\nThere are {unread_count} unread news article(s).")
+ else:
+ if unread_count > 0:
+ print(
+ f"\n\nThere are {sisyphus.getclr.bright_red}{unread_count}{sisyphus.getclr.reset} unread news article(s).")
+ else:
+ print(
+ f"\n\nThere are {sisyphus.getclr.green}{unread_count}{sisyphus.getclr.reset} unread news article(s).")
else:
if gfx_ui:
if "packages-next" in bhst_addr: