move kobo

This commit is contained in:
Dima Gerasimov 2019-09-20 22:53:47 +01:00
parent 341a970f72
commit ffe11210cc
2 changed files with 0 additions and 0 deletions

0
my/books/__init__.py Normal file
View file

15
my/books/kobo.py Normal file
View file

@ -0,0 +1,15 @@
from my.ext.kobuddy import *
set_databases('/L/backups/kobo')
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