Update eligibility_check.py

This commit was merged in pull request #39.
This commit is contained in:
VivianDee
2025-06-02 08:16:12 -04:00
parent 201fa4202e
commit c061c9b5a4
+7 -4
View File
@@ -75,11 +75,11 @@ class EligibilityCheckService(BaseService):
if not response or response['responseCode'] != '00':
if response:
logger.error(f"{response['responseMessage']}")
return ResponseHelper.error(result_description=f"Failed to save RACCheck")
return ResponseHelper.error(result_description=f"RACCheck failed")
rack_checks_response = response['data']['racResponse']
@@ -89,9 +89,12 @@ class EligibilityCheckService(BaseService):
transaction_id = transaction.transaction_id,
data = rack_checks_response
)
# -----------------TIME FOR ANALYSIS TO REGISTER OFFER ----------------------
if not rac_check:
logger.error(f"Failed to save RACCheck")
return ResponseHelper.error(result_description="Failed to save RACCheck.")
# -----------------TIME FOR ANALYSIS TO REGISTER OFFER ----------------------
# eligible_offers = []
try:
eligible_offers = OfferAnalysis.decide_offer(