From 6420867e8120514f6691b6b529b2a1a03866904e Mon Sep 17 00:00:00 2001 From: 0dysseas Date: Thu, 2 Sep 2021 18:33:50 +0300 Subject: [PATCH 1/3] feat(news): sep task 1 --- newsindicator/get_news.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newsindicator/get_news.py b/newsindicator/get_news.py index c7ee421..3d88418 100644 --- a/newsindicator/get_news.py +++ b/newsindicator/get_news.py @@ -22,7 +22,7 @@ def show_alert_notifications(): """ - Show the alert notification pop-up window + Shows the alert notification pop-up window """ # Initialize the d-bus connection and create the notification object notify2.init("News Indicator") @@ -38,7 +38,7 @@ def show_alert_notifications(): class DownloadWorker(Thread): """ - Main class that retrieves the actual articles from the corresponding urls, in a multi-threaded way. + Main class that retrieves the actual articles from the corresponding urls,using multiple threads. """ def __init__(self, input_queue, out_queue): From 766fe49db52e228ff4c208b9e9ac843629cac118 Mon Sep 17 00:00:00 2001 From: 0dysseas Date: Thu, 2 Sep 2021 18:46:34 +0300 Subject: [PATCH 2/3] fix(about): fix about window --- newsindicator/about_and_settings_wins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newsindicator/about_and_settings_wins.py b/newsindicator/about_and_settings_wins.py index 260aed4..a1eb76f 100644 --- a/newsindicator/about_and_settings_wins.py +++ b/newsindicator/about_and_settings_wins.py @@ -14,7 +14,7 @@ class AboutWindow(Gtk.Dialog): """ - About window + The about window """ def __init__(self): From d2911f548a1a33e78786ce21efa7aabc1c389f91 Mon Sep 17 00:00:00 2001 From: 0dysseas Date: Thu, 2 Sep 2021 19:01:40 +0300 Subject: [PATCH 3/3] fix(utils): fix utils comment --- newsindicator/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/newsindicator/utils.py b/newsindicator/utils.py index 066bdf4..e4aa580 100644 --- a/newsindicator/utils.py +++ b/newsindicator/utils.py @@ -23,7 +23,9 @@ def get_asset(asset='sources'): def get_news_sources_from_file(): - #gets the news sources from the file + """ + Gets the news sources from the file. + """ source_file = get_asset() with open(source_file, 'r') as f: