archive
/
todoist-github
Archived
1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
todoist-github/todoist-github/cli.py

23 lines
409 B
Python
Executable File

#!/usr/bin/env python3
from .clients import todoist
from .utils import get_github_task
def get_relevant_todoist_tasks():
todoist.items.sync()
tasks = {}
for task in todoist.items.all():
if get_github_task(task["content"]):
tasks[task['content']] = task
return tasks
def main():
todoist_tasks = get_relevant_todoist_tasks()
if __name__ == "__main__":
main()