From 016d50aaa9b612981dd6d7e4f83a3e7d80dbf1e2 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Mon, 25 May 2009 15:39:30 +0100 Subject: [PATCH] Fix overridetype function Signed-off-by: Mark Hymers --- daklib/dbconn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 113c38aa..a026e73c 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -597,7 +597,7 @@ def get_override_type(override_type, session=None): """ if session is None: session = DBConn().session() - q = session.query(Priority).filter_by(priority=priority) + q = session.query(OverrideType).filter_by(overridetype=override_type) if q.count() == 0: return None return q.one() -- 2.39.5