]> git.ipfire.org Git - pbs.git/commitdiff
jobs: Allow passing the database row to get_by_id().
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Dec 2012 23:19:57 +0000 (00:19 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Dec 2012 23:19:57 +0000 (00:19 +0100)
backend/builds.py

index ab5ce0310b451a32fb681225fd6cf4e239239156..3f1d1980f7dc7a8f8c285d536cec4355bbb32dac 100644 (file)
@@ -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)