Revised the coding style in the __get_transaction_condition method of the Search report.
This commit is contained in:
		| @@ -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") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user