Merge branch 'test' of DigiFi/digifi-EventManager into master

This commit is contained in:
2025-11-03 14:34:34 +00:00
committed by Gogs
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -342,7 +342,7 @@ class Loan(db.Model):
# Ensure valid repayment amount
if amount_collected <= Decimal("0.00"):
raise ValueError("Repayment amount must be greater than zero.")
logger.info(f"Repayment amount is less than or equal to 0: {amount_collected}. Must be greater than 0.00")
if balance <= Decimal("0.00"):
raise ValueError("There is no balance for this loan.")
if amount_collected > balance:
-2
View File
@@ -16,7 +16,6 @@ def get_headers():
"password": "G7$k9@pL2!qR"
}
logger.info(f"Calling Bank Call-Auth Endpoint: {url}")
logger.info(f"Calling Bank Call-Auth Endpoint with data: {data}")
headers = {"Content-Type": "application/json"}
@@ -25,7 +24,6 @@ def get_headers():
response.raise_for_status() # Raises HTTPError for 4xx/5xx
result = response.json()
logger.info(f"Bank Call Auth Response: {result}")
# Check if access_token is present
if 'access_token' not in result: