Skip to content

Commit

Permalink
Merge pull request #392 from NTFSvolume/fix_db_migration
Browse files Browse the repository at this point in the history
fix: v5 to v6 database transfer
  • Loading branch information
datawhores authored Dec 24, 2024
2 parents 2960314 + 77101ce commit a6e6fd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cyberdrop_dl/utils/transfer/transfer_hash_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ def transfer_from_old_hash_table(db_path):

# Insert data into 'files' and 'temp_hash' tables
cursor.executemany(
"INSERT INTO files (folder, download_filename, original_filename, file_size, referer, date) VALUES (?, ?, ?, ?, ?, ?);",
"INSERT OR IGNORE INTO files (folder, download_filename, original_filename, file_size, referer, date) VALUES (?, ?, ?, ?, ?, ?);",
data_to_insert_files,
)

cursor.executemany(
"INSERT INTO temp_hash (folder, download_filename, hash_type, hash) VALUES (?, ?, ?, ?);",
"INSERT OR IGNORE INTO temp_hash (folder, download_filename, hash_type, hash) VALUES (?, ?, ?, ?);",
data_to_insert_hash,
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl-patched"
version = "6.0.0"
version = "6.0.1"
description = "Bulk downloader for multiple file hosts"
authors = ["Jacob B <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit a6e6fd9

Please sign in to comment.