fix insert

This commit is contained in:
Antonio J. Delgado 2023-01-25 16:30:55 +02:00
parent 145f8d96c8
commit 8e1843dbe2

View file

@ -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