From 8e1843dbe20738b0d744fe34d64c3937f06c64c9 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 25 Jan 2023 16:30:55 +0200 Subject: [PATCH] fix insert --- find_duplicate_files/find_duplicate_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/find_duplicate_files/find_duplicate_files.py b/find_duplicate_files/find_duplicate_files.py index 8507c40..19db83b 100644 --- a/find_duplicate_files/find_duplicate_files.py +++ b/find_duplicate_files/find_duplicate_files.py @@ -61,7 +61,7 @@ class find_duplicate_files: return False def _cache_file(self, file, hash): - result = self.cur.execute(f"INSERT INTO files hash, file VALUES ('{file}', '{hash}')") + result = self.cur.execute(f"INSERT INTO files (hash, file) VALUES ('{file}', '{hash}')") self.cur.commit() return result