# HG changeset patch # User James Bergstra # Date 1232245416 18000 # Node ID 04752b23da8d50f48a835013acae00ded3359c94 # Parent fa6585609e01ac408970af4621cabd2548e9ed6d changed sql to use filter_eq_dct diff -r fa6585609e01 -r 04752b23da8d pylearn/dbdict/sql.py --- a/pylearn/dbdict/sql.py Sat Jan 17 21:20:32 2009 -0500 +++ b/pylearn/dbdict/sql.py Sat Jan 17 21:23:36 2009 -0500 @@ -124,7 +124,7 @@ time.sleep(wait) return dct -def book_dct(db): +def book_dct_non_postgres(db): print >> sys.stderr, """#TODO: use the priority field, not the status.""" print >> sys.stderr, """#TODO: ignore entries with key self.push_error.""" @@ -248,7 +248,7 @@ rval = [] for job in jobs: job = copy.copy(job) - do_insert = add_dups or (None is db.query(**job).first()) + do_insert = add_dups or (None is db.query.filter_eq_dct(job).first()) if do_insert: if type_check: