From 24a009de8f326af12299851fecf374dc0acc2bf6 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Thu, 7 Mar 2024 10:12:28 -0700 Subject: [PATCH] media_copy primary keys, specify columns. --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/utils/database/tables/history_table.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 86b2c509f..95c576eb2 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.1.92" \ No newline at end of file +__version__ = "5.1.93" \ No newline at end of file diff --git a/cyberdrop_dl/utils/database/tables/history_table.py b/cyberdrop_dl/utils/database/tables/history_table.py index 810c60d62..81882d3a3 100644 --- a/cyberdrop_dl/utils/database/tables/history_table.py +++ b/cyberdrop_dl/utils/database/tables/history_table.py @@ -166,7 +166,7 @@ async def fix_primary_keys(self) -> None: await self.db_conn.execute(create_fixed_history) await self.db_conn.commit() - await self.db_conn.execute("""INSERT INTO media_copy SELECT * FROM media GROUP BY domain, url_path, original_filename;""") + await self.db_conn.execute("""INSERT INTO media_copy (domain, url_path, referer, album_id, download_path, download_filename, original_filename, completed) SELECT * FROM media GROUP BY domain, url_path, original_filename;""") await self.db_conn.commit() await self.db_conn.execute("""DROP TABLE media""") diff --git a/pyproject.toml b/pyproject.toml index 1709b9ee7..3de9340b8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.1.92" +version = "5.1.93" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"