logger info
This commit is contained in:
@@ -122,6 +122,8 @@ class LoanService:
|
||||
limit=limit
|
||||
)
|
||||
|
||||
logger.info(f"Result from loans model cme back")
|
||||
|
||||
# Convert loans to dictionary format
|
||||
loans_data = []
|
||||
for loan in loans:
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ class Loan(db.Model):
|
||||
list: List of Loan objects
|
||||
"""
|
||||
query = cls.query
|
||||
|
||||
logger.info(f"Get all loan models from loans model cme back")
|
||||
# Apply filters if provided
|
||||
if customer_id:
|
||||
query = query.filter(cls.customer_id == customer_id)
|
||||
|
||||
Reference in New Issue
Block a user