[fix]: Indentation
This commit is contained in:
@@ -35,7 +35,7 @@ class OfferAnalysis:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def decide_offer(transaction_id, rac_check, validated_data, customer):
|
def decide_offer(transaction_id, rac_check, validated_data, customer):
|
||||||
"""
|
"""
|
||||||
Find the last loan - it will have original_transaction
|
Find the last loan - it will have original_transaction
|
||||||
|
|
||||||
This loan is part of the original approval where transaction_id = original_transaction for this account
|
This loan is part of the original approval where transaction_id = original_transaction for this account
|
||||||
|
|||||||
+11
-11
@@ -156,18 +156,18 @@ class Loan(db.Model):
|
|||||||
|
|
||||||
return loan
|
return loan
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_active_loans_by_original_transaction(cls, original_transaction_id):
|
def get_active_loans_by_original_transaction(cls, original_transaction_id):
|
||||||
"""
|
"""
|
||||||
Get all active loans with the same original_transaction ID.
|
Get all active loans with the same original_transaction ID.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
active_loans = cls.query.filter_by(
|
active_loans = cls.query.filter_by(
|
||||||
original_transaction=original_transaction_id,
|
original_transaction=original_transaction_id,
|
||||||
# status='active'
|
# status='active'
|
||||||
).all()
|
).all()
|
||||||
|
|
||||||
return active_loans
|
return active_loans
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user