Skip to content

Commit

Permalink
fix: db chevereto domains conflicts
Browse files Browse the repository at this point in the history
NTFSvolume committed Jan 23, 2025
1 parent 9cb6be9 commit d2c4879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyberdrop_dl/utils/database/tables/history_table.py
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ async def startup(self) -> None:
await self.fix_chevereto_domains()

async def fix_chevereto_domains(self) -> None:
query = """UPDATE media SET domain = 'jpg5.su' WHERE domain = 'sharex'"""
query = """UPDATE OR REPLACE media SET domain = 'jpg5.su' WHERE domain = 'sharex'"""
cursor = await self.db_conn.cursor()
await cursor.execute(query)
await self.db_conn.commit()

0 comments on commit d2c4879

Please sign in to comment.