eliminated some hardcoded values

This commit is contained in:
2025-04-17 17:16:01 +01:00
parent 0268bbd557
commit d2e272e44b
8 changed files with 145 additions and 9 deletions
+7 -1
View File
@@ -1,4 +1,6 @@
from datetime import datetime, timezone, timedelta
from os.path import devnull
from app.extensions import db
from sqlalchemy.orm import relationship
@@ -40,4 +42,8 @@ class LoanCharge(db.Model):
'percent': self.percent,
'description': self.description,
'due': self.due
}
}
@classmethod
def get_loan_charge_by_debt_id(cls, debt_id):
return cls.query.filter_by(loan_id=debt_id)