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.
2019-02-14 20:00:05 +00:00
|
|
|
from github import Github
|
2019-02-14 20:27:09 +00:00
|
|
|
from todoist import TodoistAPI
|
2019-02-14 20:00:05 +00:00
|
|
|
|
2019-02-14 20:27:09 +00:00
|
|
|
from actioner.settings import GITHUB_TOKEN, TODOIST_TOKEN
|
2019-02-14 20:00:05 +00:00
|
|
|
|
|
|
|
github = Github(GITHUB_TOKEN)
|
2019-02-24 14:56:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
def get_todoist_client():
|
|
|
|
"""
|
|
|
|
The Todoist client isn't thread safe, so we need to create it each time we want to use it
|
|
|
|
"""
|
|
|
|
return TodoistAPI(TODOIST_TOKEN)
|