]> git.phdru.name Git - xsetbg.git/blobdiff - print-stats.py
Feat: For TIFF files use `xsetbg`
[xsetbg.git] / print-stats.py
index a87ad5cc411cdd24bf2f810b549d877ac893e156..4e1770dddeef017a58546de6647990adad78eb6a 100755 (executable)
@@ -5,10 +5,6 @@ This file is a part of XSetBg.
 
 """
 
-__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2006-2015 PhiloSoft Design"
-__license__ = "GNU GPL"
-
 import sys
 from time import localtime, asctime
 from xsetbg_db import xsetbg_db
@@ -17,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',