From 68693e716807fc12155bf7195516744099f36ed9 Mon Sep 17 00:00:00 2001 From: dadaloop82 Date: Sat, 16 May 2026 12:31:26 +0000 Subject: [PATCH] =?UTF-8?q?fix(expiry):=20sealed=20potatoes=20shelf=20life?= =?UTF-8?q?=2014=E2=86=9230=20days=20(aligns=20with=20JS)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/database.php b/api/database.php index 08f8de8..ffe8ad5 100644 --- a/api/database.php +++ b/api/database.php @@ -474,7 +474,7 @@ function estimateSealedExpiryDaysPHP(string $name, string $category, string $loc elseif (preg_match('/carota|carote|zucchina|zucchine|peperoni|melanzane/', $n)) $days = 7; elseif (preg_match('/broccoli|cavolfiore|cavolo|spinaci|bietola/', $n)) $days = 5; elseif (preg_match('/cipolla|cipolle/', $n)) $days = 10; - elseif (preg_match('/patata|patate/', $n)) $days = 14; + elseif (preg_match('/patata|patate/', $n)) $days = 30; // whole tubers in a bag, pantry: 3-5 weeks elseif (preg_match('/biscott|cracker|grissini|fette\s+biscott/', $n)) $days = 180; elseif (preg_match('/nutella|marmellata|miele/', $n)) $days = 365; elseif (preg_match('/passata|pelati|pomodor/', $n)) $days = 730;