Renamed the IncomeExpensesAccountConverter path converter to CurrentAccountConverter.

This commit is contained in:
2023-04-08 07:11:41 +08:00
parent 720e77c814
commit c984d2d596
3 changed files with 8 additions and 9 deletions

View File

@ -51,9 +51,9 @@ class PeriodConverter(BaseConverter):
return value.spec
class IncomeExpensesAccountConverter(BaseConverter):
"""The converter to convert the income and expenses log account code from
and to the corresponding account in the routes."""
class CurrentAccountConverter(BaseConverter):
"""The converter to convert the current account code from and to the
corresponding account in the routes."""
def to_python(self, value: str) -> CurrentAccount:
"""Converts an account code to an account.