Commit tasks
This commit is contained in:
parent
b8a76e3f52
commit
b9c03a73b4
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,7 @@ import time
|
||||||
|
|
||||||
import coloredlogs
|
import coloredlogs
|
||||||
|
|
||||||
|
from .clients import todoist
|
||||||
from .tasks import ALL_TASKS
|
from .tasks import ALL_TASKS
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +20,8 @@ def run_tasks():
|
||||||
for task in ALL_TASKS:
|
for task in ALL_TASKS:
|
||||||
logging.info("Executing %s", task.__name__)
|
logging.info("Executing %s", task.__name__)
|
||||||
task()
|
task()
|
||||||
|
logging.debug("Committing tasks")
|
||||||
|
todoist.commit()
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Reference in a new issue