Skip to content

Commit d1a5071

Browse files
committed
chore: hide new product at the service level
1 parent 13ffaad commit d1a5071

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bc_obps/service/data_access_service/regulated_product_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def get_regulated_products(cls) -> QuerySet[RegulatedProduct]:
1212
if cached_data:
1313
return cached_data
1414
else:
15-
regulated_products = RegulatedProduct.objects.only(*RegulatedProductSchema.Meta.fields)
15+
regulated_products = RegulatedProduct.objects.exclude(name="Pulp and paper: lime recovered by kiln").only(
16+
*RegulatedProductSchema.Meta.fields
17+
)
1618
cache.set("regulated_products", regulated_products, 60 * 60 * 24 * 1) # 1 day
1719
return regulated_products

0 commit comments

Comments
 (0)