def ans_yes(update, bot): query = update.callback_query user_id = query.message.chat_id msg_id = query.message.message_id bot.bot.edit_message_text(chat_id=user_id, message_id=msg_id, text="Заказ успешно оформлен!!!", reply_markup=None) DB.add_product(user_id)
print(i) elif choice == "8": for i in database.find_all_prod(): print(i) elif choice == "9": for i in database.find_all_cust(): print(i) elif choice == "10": for i in database.find_all_order(): print(i) elif choice == "11": ent = add_seller() database.add_seller(ent["name"], ent["surname"], ent["salary"]) elif choice == "12": ent = add_product() database.add_product(ent["name"], ent["category"], ent["price"]) elif choice == "13": ent = add_customer() database.add_customer(ent["name"], ent["surname"], ent["phone"], ent["email"]) elif choice == "14": ent = add_order() database.add_order( ent["product_id"], ent["customer_id"], ent["payment_type"], ent["delivery"], ent["count"], ) elif choice == "15": id = get_id()