Revised the coding style in the __get_transaction_condition method of the Search report.

This commit is contained in:
依瑪貓 2023-03-08 13:46:11 +08:00
parent 005f9083aa
commit 196a115c99

View File

@ -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")