Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 24 lines (18 sloc) 617 Bytes
#!/usr/bin/env python3
from orger import InteractiveView
from orger.inorganic import node, link
from orger.common import todo
from my.books.kobo import get_todos, Highlight # type: ignore
class KoboTodos(InteractiveView):
def get_items(self):
for t in get_todos():
# TODO shit judging by the state.json, looks like eid might be flaky?
yield t.eid, todo(
t.dt,
heading=t.text,
tags=['kobo2org'],
body=f'{t.annotation}\nfrom {t.book}\n',
)
# TODO test?
if __name__ == '__main__':
KoboTodos.main()
You can’t perform that action at this time.