diff --git a/file_list.py b/file_list.py index bd38869..747846c 100755 --- a/file_list.py +++ b/file_list.py @@ -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]