Revised the coding style in the __get_transaction_condition method of the Search report.
This commit is contained in:
parent
005f9083aa
commit
196a115c99
@ -236,8 +236,7 @@ class Search(BaseReport):
|
||||
:param k: The keyword.
|
||||
:return: The condition to filter the transaction.
|
||||
"""
|
||||
conditions: list[sa.BinaryExpression] \
|
||||
= [Transaction.note.contains(k)]
|
||||
conditions: list[sa.BinaryExpression] = [Transaction.note.contains(k)]
|
||||
txn_date: datetime
|
||||
try:
|
||||
txn_date = datetime.strptime(k, "%Y")
|
||||
|
Loading…
Reference in New Issue
Block a user