~rladams/tert/trunk

« back to all changes in this revision

Viewing changes to bin/TERTcli.py

  • Committer: Russell Adams
  • Date: 2013-05-28 18:40:55 UTC
  • Revision ID: rladams@adamsinfoserv.com-20130528184055-7l1pgu40apovc4ax
Moved debug.

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
 
763
763
        # Default query
764
764
        query = DB.session.query(SQLTxns.Txn)
 
765
        import pdb; pdb.set_trace()
765
766
 
766
767
        if options.id:
767
768
            query = SQLTxns.Txn.findById(options.id, DB.session)
768
769
        elif options.grep:
769
770
            query = query.filter(SQLTxns.Txn.payee.ilike('%'+options.grep+'%'))
770
771
        elif options.fast-grep:
771
 
            import pdb; pdb.set_trace()
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+'%'))