core: experiments with attaching datetime information to errors

my.body.weigth: put datetime information in the error rows
This commit is contained in:
Dima Gerasimov 2020-09-09 21:28:22 +01:00 committed by karlicoss
parent 743312a87b
commit 99e50f0afe
5 changed files with 60 additions and 11 deletions

View file

@ -69,11 +69,10 @@ def pages() -> List[Res[Page]]:
# todo not public api yet
def stats():
# todo add 'last date' checks et
from .core import stat
return {
# todo ilen
'highlights': len(highlights()),
'pages' : len(pages()),
**stat(highlights),
**stat(pages),
}