Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
(PC-fix) Fix: .is_active() to check if FF is active
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremieb-pass committed Sep 13, 2021
1 parent ee54ee6 commit 9ef27cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pcapi/core/bookings/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def expirationDate(self) -> Optional[datetime]:
return None
if (
self.stock.offer.subcategoryId == subcategories.LIVRE_PAPIER.id
and FeatureToggle.ENABLE_NEW_AUTO_EXPIRY_DELAY_BOOKS_BOOKINGS
and FeatureToggle.ENABLE_NEW_AUTO_EXPIRY_DELAY_BOOKS_BOOKINGS.is_active()
and self.dateCreated > BOOKS_BOOKINGS_AUTO_EXPIRY_DELAY_START_DATE
):
return self.dateCreated + BOOKS_BOOKINGS_AUTO_EXPIRY_DELAY
Expand Down

0 comments on commit 9ef27cf

Please sign in to comment.