1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Add stats CLI command

This commit is contained in:
Thomas Sileo
2022-07-08 21:17:08 +02:00
parent 592de1b22d
commit 758a28d0e1
5 changed files with 191 additions and 1 deletions

View File

@ -135,3 +135,11 @@ def install_deps(ctx):
def update(ctx):
# type: (Context) -> None
print("Done")
@task
def stats(ctx):
# type: (Context) -> None
from app.utils.stats import print_stats
print_stats()