From: Oleg Broytman Date: Mon, 20 Aug 2018 14:52:08 +0000 (+0300) Subject: Feat: Print (non-)images counts X-Git-Tag: 5.1.0~23 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3c344b2814eb7b1aff34e515a7e209c3b75d2795;p=xsetbg.git Feat: Print (non-)images counts --- 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',