From 3c344b2814eb7b1aff34e515a7e209c3b75d2795 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 20 Aug 2018 17:52:08 +0300 Subject: [PATCH] Feat: Print (non-)images counts --- print-stats.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/print-stats.py b/print-stats.py index 415688e..4e1770d 100755 --- a/print-stats.py +++ b/print-stats.py @@ -13,6 +13,9 @@ if not xsetbg_db: sys.exit("Error: no database found") 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 "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() last_shown = xsetbg_db.select('last_shown IS NOT NULL', -- 2.39.5