cli: integrate with stats reported by the modules
This commit is contained in:
parent
d890599c7c
commit
7bd7cc9228
7 changed files with 49 additions and 4 deletions
|
@ -69,6 +69,16 @@ def pages() -> List[Res[Page]]:
|
|||
return sort_res_by(_dal().pages(), key=lambda h: h.created)
|
||||
|
||||
|
||||
# todo not public api yet
|
||||
def stats():
|
||||
# todo add 'last date' checks et
|
||||
return {
|
||||
# todo ilen
|
||||
'highlights': len(highlights()),
|
||||
'pages' : len(pages()),
|
||||
}
|
||||
|
||||
|
||||
def _main():
|
||||
for page in get_pages():
|
||||
print(page)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue