Ergänzung Datenschutzerklärung und Impressum, Fristenformular in Einstellungen

This commit is contained in:
2026-08-10 06:44:11 +02:00
parent 8ffbda875e
commit 777e3e5447
25 changed files with 1310 additions and 139 deletions

View File

@@ -163,9 +163,11 @@ def lookup(db: Session, barcode: str) -> ProductCache | None:
cached = db.get(ProductCache, barcode)
if cached is not None:
from app.runtime_settings import get_duration
age = utcnow() - cached.fetched_at
max_age = timedelta(
days=settings.product_cache_days if cached.found
days=get_duration(db, "product_cache_days") if cached.found
else settings.product_miss_days
)
if age < max_age: