1
Fork 0

Commit tasks

This commit is contained in:
Jake Howard 2020-01-19 20:24:08 +00:00
parent b8a76e3f52
commit b9c03a73b4
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -6,6 +6,7 @@ import time
import coloredlogs
from .clients import todoist
from .tasks import ALL_TASKS
@ -19,6 +20,8 @@ def run_tasks():
for task in ALL_TASKS:
logging.info("Executing %s", task.__name__)
task()
logging.debug("Committing tasks")
todoist.commit()
def main():