]> git.phdru.name Git - xsetbg.git/commitdiff
Feat(print-stats): Print enabled/disabled master
authorOleg Broytman <phd@phdru.name>
Wed, 6 Nov 2024 18:02:59 +0000 (21:02 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 6 Nov 2024 18:02:59 +0000 (21:02 +0300)
print-stats.py

index fe7cfa585c2c1287c3ecbee5c1177826c15754a0..83fc04d597bed9890a5e8983d5c0f2d7ec51a310 100755 (executable)
@@ -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())