diff --git a/find_duplicate_files/find_duplicate_files.py b/find_duplicate_files/find_duplicate_files.py index 19db83b..0cbc022 100644 --- a/find_duplicate_files/find_duplicate_files.py +++ b/find_duplicate_files/find_duplicate_files.py @@ -62,7 +62,7 @@ class find_duplicate_files: def _cache_file(self, file, hash): result = self.cur.execute(f"INSERT INTO files (hash, file) VALUES ('{file}', '{hash}')") - self.cur.commit() + self.cache_db.commit() return result def recursive_scandir(self, path, ignore_hidden_files=True):