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.
This commit is contained in:
Ace 2021-02-01 19:17:07 +01:00
parent 5e7868162a
commit fcf7799e43

View File

@ -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 :/')