Update offer_analysis.py
This commit was merged in pull request #72.
This commit is contained in:
@@ -180,7 +180,7 @@ class OfferAnalysis:
|
|||||||
|
|
||||||
if real_eligible_amount < original_transaction_offer.min_amount:
|
if real_eligible_amount < original_transaction_offer.min_amount:
|
||||||
logger.error(f"Max eligible amount ({real_eligible_amount}) is less than the minimum offer amount ({original_transaction_offer.min_amount}).")
|
logger.error(f"Max eligible amount ({real_eligible_amount}) is less than the minimum offer amount ({original_transaction_offer.min_amount}).")
|
||||||
raise ValueError("You are not eligible for a loan at this time.")
|
raise ValueError("You are not eligible for a loan at this time - Minimum amount not met.")
|
||||||
|
|
||||||
# if real_eligible_amount < 100:
|
# if real_eligible_amount < 100:
|
||||||
# logger.error(f"Max eligible amount ({real_eligible_amount}) is less than the minimum offer amount ({original_transaction_offer.min_amount}).")
|
# logger.error(f"Max eligible amount ({real_eligible_amount}) is less than the minimum offer amount ({original_transaction_offer.min_amount}).")
|
||||||
@@ -257,7 +257,7 @@ class OfferAnalysis:
|
|||||||
})
|
})
|
||||||
|
|
||||||
if not eligible_offers:
|
if not eligible_offers:
|
||||||
logger.error("No eligible offers found for customer: {customer_id}.")
|
logger.error("No eligible offers found for customer: {customer_id} - Minimum amount not met")
|
||||||
raise ValueError("You are not eligible for a loan at this time.")
|
raise ValueError("You are not eligible for a loan at this time - Minimum amount not met")
|
||||||
|
|
||||||
return eligible_offers
|
return eligible_offers
|
||||||
Reference in New Issue
Block a user