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.
|
:param k: The keyword.
|
||||||
:return: The condition to filter the transaction.
|
:return: The condition to filter the transaction.
|
||||||
"""
|
"""
|
||||||
conditions: list[sa.BinaryExpression] \
|
conditions: list[sa.BinaryExpression] = [Transaction.note.contains(k)]
|
||||||
= [Transaction.note.contains(k)]
|
|
||||||
txn_date: datetime
|
txn_date: datetime
|
||||||
try:
|
try:
|
||||||
txn_date = datetime.strptime(k, "%Y")
|
txn_date = datetime.strptime(k, "%Y")
|
||||||
|
Loading…
Reference in New Issue
Block a user