fix insert
This commit is contained in:
parent
75fcbbcbda
commit
363aaf46fd
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ class find_duplicate_files:
|
|||
|
||||
def _cache_file(self, file, hash):
|
||||
file_sql = file.replace("'", "''")
|
||||
query = f"INSERT INTO files (hash, file) VALUES ('{file_sql}', '{hash}')"
|
||||
query = f"INSERT INTO files (file, hash) VALUES ('{file_sql}', '{hash}')"
|
||||
if isinstance(query, bytes):
|
||||
query = query.decode('utf-8')
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue