dupes only files with data

This commit is contained in:
q
2014-08-16 17:53:19 +03:00
parent 7692182cfb
commit 6a1bb35d9b

View File

@@ -262,7 +262,7 @@ def find_duplicates(sqlfile):
conn.text_factory=str
db=conn.cursor()
dbh=conn.cursor()
db.execute("SELECT hash,count(*) FROM list group by hash HAVING count(*) > 1 ")
db.execute("SELECT hash,count(*) FROM list WHERE size > 0 GROUP BY hash HAVING count(*) > 1 ")
duphash=[]
for row in db:
hash=row[0]