diff --git a/deathclock/main.py b/deathclock/main.py index d413bed..b8c1d4a 100644 --- a/deathclock/main.py +++ b/deathclock/main.py @@ -90,7 +90,7 @@ def main(): #start timer for news news_timer = QTimer() news_timer.timeout.connect(news_obj.get_news) - news_timer.setInterval(600000) # 10 minutes + news_timer.setInterval(300000) # 10 minutes #changed to 5 mins news_timer.start() @@ -102,6 +102,6 @@ def main(): if __name__ == "__main__": main() -#TODO: add weather to qml -#TODO: move weather to own file + + \ No newline at end of file diff --git a/deathclock/news.py b/deathclock/news.py index 7bd2a1d..bca3851 100644 --- a/deathclock/news.py +++ b/deathclock/news.py @@ -42,6 +42,7 @@ class news(): self._news_dict_length += 1 #for i in self._news_dict: # print(self._news_dict[i]) + print("news updated") return self._news_dict diff --git a/deathclock/weather.py b/deathclock/weather.py index ba42366..80476e8 100644 --- a/deathclock/weather.py +++ b/deathclock/weather.py @@ -34,6 +34,7 @@ class Weather(QObject): weather_context = engine.rootContext() weather_context.setContextProperty("weatherImage", image) driver.quit() + print("weather updated") self.weatherUpdated.emit(image) return screenshot_path