From fcf7799e430c73e23f3be3457a463500cdd512e6 Mon Sep 17 00:00:00 2001 From: Ace Date: Mon, 1 Feb 2021 19:17:07 +0100 Subject: [PATCH] Hotfix for Todoist API module The Todoist module would not update on each loop, but rather at each reboot. This commit fixes the problem by syncronising with the API on each refresh. --- inkycal/modules/inkycal_todoist.py | 1 + 1 file changed, 1 insertion(+) diff --git a/inkycal/modules/inkycal_todoist.py b/inkycal/modules/inkycal_todoist.py index c1deeb6..e859d34 100644 --- a/inkycal/modules/inkycal_todoist.py +++ b/inkycal/modules/inkycal_todoist.py @@ -86,6 +86,7 @@ class Todoist(inkycal_module): # Check if internet is available if internet_available() == True: logger.info('Connection test passed') + self._api.sync() else: raise Exception('Network could not be reached :/')