diff --git a/make_post_sell/models/offer.py b/make_post_sell/models/offer.py index 9413ea6..f67dfd1 100644 --- a/make_post_sell/models/offer.py +++ b/make_post_sell/models/offer.py @@ -104,7 +104,7 @@ OFFER_EVENT_INT_TO_HUMAN = { # Defaults — shop settings override these per-shop. -DEFAULT_OFFER_EXPIRATION_HOURS = 168 # 7 days, pre-acceptance window +DEFAULT_OFFER_EXPIRATION_HOURS = 48 # 2 days, pre-acceptance window DEFAULT_OFFER_MAX_ROUNDS = 3 DEFAULT_OFFER_AUTO_ACCEPT_PCT = 95 DEFAULT_OFFER_AUTO_DECLINE_PCT = 50 diff --git a/make_post_sell/models/shop.py b/make_post_sell/models/shop.py index a0e7846..f656592 100644 --- a/make_post_sell/models/shop.py +++ b/make_post_sell/models/shop.py @@ -200,7 +200,7 @@ class Shop(RBase, Base): BigInteger, nullable=False, default=50, server_default="50" ) offer_expiration_hours = Column( - BigInteger, nullable=False, default=168, server_default="168" + BigInteger, nullable=False, default=48, server_default="48" ) offer_max_rounds = Column( BigInteger, nullable=False, default=3, server_default="3" diff --git a/make_post_sell/tests/test_integration.py b/make_post_sell/tests/test_integration.py index 73a2724..06c5b89 100644 --- a/make_post_sell/tests/test_integration.py +++ b/make_post_sell/tests/test_integration.py @@ -4458,7 +4458,7 @@ class TestPricingModePersistence(DatabaseIntegrationTests): fetched = self.dbsession.query(Shop).get(shop_id) self.assertEqual(fetched.offer_auto_accept_threshold_pct, 95) self.assertEqual(fetched.offer_auto_decline_threshold_pct, 50) - self.assertEqual(fetched.offer_expiration_hours, 168) + self.assertEqual(fetched.offer_expiration_hours, 48) self.assertEqual(fetched.offer_max_rounds, 3) self.assertEqual(fetched.offer_min_buyer_account_age_hours, 0) # Booleans/nullable: offer_enabled defaults None (no server_default set)