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
|
@ -40,3 +40,10 @@ def states() -> Iterable[SubscriptionState]:
|
|||
dt = isoparse(dts)
|
||||
subs = parse_file(f)
|
||||
yield dt, subs
|
||||
|
||||
|
||||
def stats():
|
||||
from more_itertools import ilen, last
|
||||
return {
|
||||
'subscriptions': ilen(last(states())[1])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue