Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
media_copy primary keys, specify columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Mar 7, 2024
1 parent 606f669 commit 24a009d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.92"
__version__ = "5.1.93"
2 changes: 1 addition & 1 deletion cyberdrop_dl/utils/database/tables/history_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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""")
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"
version = "5.1.92"
version = "5.1.93"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 24a009d

Please sign in to comment.