mirror of
https://github.com/clucraft/PriceGhost.git
synced 2026-05-12 09:12:40 +02:00
Add per-product AI extraction disable option
- Add ai_extraction_disabled column to products table - Add toggle in Advanced Settings alongside AI verification disable - Pass skipAiExtraction flag through scheduler to scraper - Skip AI extraction fallback when flag is set for product Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0a66d55d79
commit
be6dd6382e
7 changed files with 49 additions and 6 deletions
|
|
@ -219,7 +219,7 @@ router.put('/:id', async (req: AuthRequest, res: Response) => {
|
|||
return;
|
||||
}
|
||||
|
||||
const { name, refresh_interval, price_drop_threshold, target_price, notify_back_in_stock, ai_verification_disabled } = req.body;
|
||||
const { name, refresh_interval, price_drop_threshold, target_price, notify_back_in_stock, ai_verification_disabled, ai_extraction_disabled } = req.body;
|
||||
|
||||
const product = await productQueries.update(productId, userId, {
|
||||
name,
|
||||
|
|
@ -228,6 +228,7 @@ router.put('/:id', async (req: AuthRequest, res: Response) => {
|
|||
target_price,
|
||||
notify_back_in_stock,
|
||||
ai_verification_disabled,
|
||||
ai_extraction_disabled,
|
||||
});
|
||||
|
||||
if (!product) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue