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.
|
from todoist.models import Item
|
|
|
|
|
|
def is_task_completed(task: Item):
|
|
"""
|
|
`Item` doesn't support `.get`, so re-implement it
|
|
"""
|
|
try:
|
|
return task["checked"]
|
|
except KeyError:
|
|
return False
|