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.