We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c74ad7 commit 7a4d84aCopy full SHA for 7a4d84a
unzipper/modules/ext_script/custom_thumbnail.py
@@ -6,6 +6,7 @@
6
from config import Config
7
from unzipper import LOGGER
8
from unzipper.modules.bot_data import Buttons, Messages
9
+from unzipper.helpers.database import del_thumb_db
10
"""
11
async def thumb_keyboard():
12
keyboard = InlineKeyboard(row_width=2)
@@ -101,7 +102,9 @@ async def save_thumb(_, message):
101
102
103
104
async def del_thumb(_, message):
- thumb_location = Config.THUMB_LOCATION + "/" + str(message.from_user.id)
105
+ id = message.from_user.id
106
+ thumb_location = Config.THUMB_LOCATION + "/" + str(id)
107
+ await del_thumb_db(id)
108
try:
109
os.remove(thumb_location + ".jpg")
110
except:
0 commit comments