move kobo
This commit is contained in:
parent
341a970f72
commit
ffe11210cc
2 changed files with 0 additions and 0 deletions
0
my/books/__init__.py
Normal file
0
my/books/__init__.py
Normal file
15
my/books/kobo.py
Normal file
15
my/books/kobo.py
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue