HPI/my/books/kobo.py
2019-10-08 21:18:53 +01:00

16 lines
371 B
Python

from my_configuration import paths
from my_configuration.repos.kobuddy.src.kobuddy import *
set_databases(paths.kobuddy.export_dir)
def get_todos():
def with_todo(ann):
if ann is None:
ann = ''
return 'todo' in ann.lower().split()
return by_annotation(with_todo)
def test_todos():
todos = get_todos()
assert len(todos) > 3