Fix saving links after they've been deleted
This commit is contained in:
parent
7d87628ea2
commit
5f662c1613
1 changed files with 4 additions and 0 deletions
|
@ -106,6 +106,10 @@ class YTDLCog(commands.Cog):
|
|||
"""
|
||||
INSERT INTO downloads (key, message_id, channel_id, webpage_url, format_id, attachment_index)
|
||||
VALUES (?, ?, ?, ?, ?, ?)
|
||||
ON CONFLICT (key) DO UPDATE SET
|
||||
message_id=excluded.message_id,
|
||||
channel_id=excluded.channel_id,
|
||||
attachment_index=excluded.attachment_index
|
||||
""",
|
||||
(_hash, message.id, message.channel.id, webpage_url, format_id, attachment_index)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue