From: Oleg Broytman Date: Wed, 6 Nov 2024 18:02:59 +0000 (+0300) Subject: Feat(print-stats): Print enabled/disabled X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=HEAD;p=xsetbg.git Feat(print-stats): Print enabled/disabled --- diff --git a/print-stats.py b/print-stats.py index fe7cfa5..83fc04d 100755 --- a/print-stats.py +++ b/print-stats.py @@ -15,6 +15,8 @@ if not xsetbg_db: print("Total files:", xsetbg_db.select().count()) print("Images:", xsetbg_db.select('is_image = 1').count()) print("Non-images:", xsetbg_db.select('is_image = 0').count()) +print("Enabled:", xsetbg_db.select('show = 1').count()) +print("Disabled:", xsetbg_db.select('show = 0').count()) print("Unknown:", xsetbg_db.select('is_image IS NULL').count()) print("Shown files:", xsetbg_db.select('last_shown IS NOT NULL').count()) print("Not shown files:", xsetbg_db.select('last_shown IS NULL').count())