await bot.send_message(query.from_user.id, text=f"Заказ № {r[0]}\nСтатус: НА РАССМОТРЕНИИ.\nНазвание работы: {r[2]}\nОписание: {r[3]}\nКлиент: {cl_name}\nДата создания заказа:\n{r[5]}\n\n",
reply_markup=nav.order_list_admin_1)
if answ_date_2 == "accept_ord":
status = 2
text= str(query.message.text)
id=re.search('\d+', text).group(0)
db.set_new_status(id, status)
await bot.send_message(query.from_user.id, text=f'ЗАКАЗ №{id}ПРИНЯТ',
reply_markup=nav.back_admin_menu_order)
self.db.c.execute('''SELECT * FROM massa WHERE product LIKE ? AND lenght LIKE ? AND width LIKE ? AND thickness LIKE ?''', (product, lenght, width, thickness))
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files (x86)\Python38-32\lib\tkinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "D:/Phyton/App_big_project/Main_app.py", line 231, in <lambda>
btn_search.bind('<Button-1>', lambda event:self.view.search_records(self.entry_product_s.get(),self.entry_lenght_s.get(), self.entry_width_s.get(), self.entry_thickness_s.get()))
File "D:/Phyton/App_big_project/Main_app.py", line 80, in search_records
self.db.c.execute('''SELECT * FROM massa WHERE product LIKE ? AND lenght LIKE ? AND width LIKE ? AND thickness LIKE ?''', (product, lenght, width, thickness))
sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.