mbligh | c6b01ed | 2006-10-13 17:03:26 +0000 | [diff] [blame] | 1 | #!/usr/bin/python |
mbligh | 056d0d3 | 2006-10-08 22:31:10 +0000 | [diff] [blame] | 2 | import sys, db |
3 | |||||
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 4 | try: |
5 | arg = sys.argv[1] | ||||
mbligh | 056d0d3 | 2006-10-08 22:31:10 +0000 | [diff] [blame] | 6 | except: |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 7 | arg = '' |
mbligh | d5c33db | 2006-10-08 21:34:16 +0000 | [diff] [blame] | 8 | |
9 | db = db.db() | ||||
showard | eab66ce | 2009-12-23 00:03:56 +0000 | [diff] [blame] | 10 | for record in db.select('* from tko_jobs ' + arg): |
jadmanski | 0afbb63 | 2008-06-06 21:10:57 +0000 | [diff] [blame] | 11 | print record |