Merge remote-tracking branch 'kobo/master'
This commit is contained in:
commit
341a970f72
1 changed files with 15 additions and 0 deletions
15
books/kobo/__init__.py
Normal file
15
books/kobo/__init__.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
Reference in a new issue