From: Michael Tremer Date: Thu, 13 Dec 2012 23:19:57 +0000 (+0100) Subject: jobs: Allow passing the database row to get_by_id(). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea0393fa1f6821a0bcabcf241184931272a3500;p=pbs.git jobs: Allow passing the database row to get_by_id(). --- diff --git a/backend/builds.py b/backend/builds.py index ab5ce031..3f1d1980 100644 --- a/backend/builds.py +++ b/backend/builds.py @@ -1267,8 +1267,8 @@ class Build(base.Object): class Jobs(base.Object): - def get_by_id(self, id): - return Job(self.pakfire, id) + def get_by_id(self, id, data=None): + return Job(self.pakfire, id, data) def get_by_uuid(self, uuid): job = self.db.get("SELECT id FROM jobs WHERE uuid = %s", uuid)