как вариант:
....
Поставить эластик или сфинкс и искать по нему?
какой ещё selected, зачем?
$IdsProducts = Product::WhereHas('categories', function ($q) use ($node) {
$q->where('category_id', $node->id);
})->pluck('id')->toArray();
$discounts = Discount::WhereHas('product', function ($q) use ($IdsProducts) {
$q->whereIn('product_id', $IdsProducts);
})->get();
return $discounts;
clickable = driver.find_element(By.ID, "product_1934")
ActionChains(driver)
.click_and_hold(clickable)
.perform()
гроб поставить на жёсткий с убунту, подключить обратно, выставить загрузку с диска убунты, обновить гроб
item['description'] = f"{description}"
По прежнему вызывает ошибку,