From: Michael Tremer Date: Sun, 17 Feb 2013 17:34:05 +0000 (+0100) Subject: builds: Active builds must be of type 'release'. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f83864fdcdd7690a47b17f2edefd063f56187f6;p=pbs.git builds: Active builds must be of type 'release'. --- diff --git a/backend/builds.py b/backend/builds.py index ef1e7c1f..fcfb3491 100644 --- a/backend/builds.py +++ b/backend/builds.py @@ -175,8 +175,8 @@ class Builds(base.Object): query = "\ SELECT * FROM builds \ LEFT JOIN builds_latest ON builds.id = builds_latest.build_id \ - WHERE builds_latest.package_name = %s" - args = [name,] + WHERE builds_latest.package_name = %s AND builds.type = %s" + args = [name, "release"] if public is True: query += " AND builds.public = %s"