From 40be57538fb5e688466ce2d748ed97e01bea8891 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 6 Nov 2024 21:02:59 +0300 Subject: [PATCH] Feat(print-stats): Print enabled/disabled --- print-stats.py | 2 ++ 1 file changed, 2 insertions(+) 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()) -- 2.39.5