diff --git a/utils/database_utils.py b/utils/database_utils.py index 80ebc8a..62f5d67 100644 --- a/utils/database_utils.py +++ b/utils/database_utils.py @@ -553,7 +553,7 @@ def checkFileProcessed(cursor, verbose, file): hash = getHash(file_handle.read()) try: - sql = "SELECT file from Files where hashSHA = ?"+ \ + sql = "SELECT file from Files where hashSHA = (?) "+ \ " AND processed = 'True';" cursor.execute(sql, hash)