def delete_vpn(self, productsid):
result = self.cursor.execute("DELETE FROM log_pass_vpn WHERE productsid = (SELECT productsid FROM log_pass_vpn LIMIT 1)", (productsid,))
self.conn.commit()
return result
result = self.cursor.execute("DELETE FROM log_pass_vpn WHERE productsid = (SELECT productsid FROM log_pass_vpn LIMIT 1)", [productsid])
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 0, and there are 1 supplied.
mes = int(callback_query.message.text)
ValueError: invalid literal for int() with base 10: 'Покупка товара:\n➖➖➖➖➖➖➖➖➖➖➖➖➖\n Название: SurfShark 20ГБ\n Категория: VPN\n Описание: \n Стоимость: 100₽\n Количество: 10 шт'