From: Mark Hymers Date: Mon, 25 May 2009 14:39:30 +0000 (+0100) Subject: Fix overridetype function X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=016d50aaa9b612981dd6d7e4f83a3e7d80dbf1e2;p=dak Fix overridetype function Signed-off-by: Mark Hymers --- 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()