1#!/usr/bin/python
2import sys, db
3
4try:
5    arg = sys.argv[1]
6except:
7    arg = ''
8
9db = db.db()
10for record in db.select('* from tko_jobs ' + arg):
11    print record
12