cli: integrate with stats reported by the modules

This commit is contained in:
Dima Gerasimov 2020-05-25 11:27:54 +01:00
parent d890599c7c
commit 7bd7cc9228
7 changed files with 49 additions and 4 deletions

View file

@ -322,6 +322,12 @@ def by_night() -> Dict[date, Emfit]:
return res
def stats():
return {
'nights': len(by_night()),
}
def main():
for k, v in by_night().items():
print(k, v.start, v.end)