]> git.decadent.org.uk Git - dak.git/commitdiff
Fix overridetype function
authorMark Hymers <mhy@debian.org>
Mon, 25 May 2009 14:39:30 +0000 (15:39 +0100)
committerMark Hymers <mhy@debian.org>
Sun, 9 Aug 2009 15:49:22 +0000 (16:49 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index 113c38aa5fef3bf2d7a31015fa7622440ad73be4..a026e73c4bcecf795236a162a1cd578f0937ccaf 100755 (executable)
@@ -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()