764
764
query = DB.session.query(SQLTxns.Txn)
767
768
query = SQLTxns.Txn.findById(options.id, DB.session)
769
770
query = query.filter(SQLTxns.Txn.payee.ilike('%'+options.grep+'%'))
772
772
query = query.filter(SQLTxns.Txn.cleared == False)
773
773
query = query.filter(SQLTxns.Txn.receipt_id == None)
774
774
query = query.filter(SQLTxns.Txn.payee.ilike('%'+options.fast-grep+'%'))