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
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue