From: Michael Tremer Date: Fri, 7 Feb 2025 12:43:52 +0000 (+0000) Subject: builds: Call the right function to create a group X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=202918d4a7dd78bf1fd97390997941150f30866d;p=pbs.git builds: Call the right function to create a group Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index f1c3365b..6e53cd85 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -1164,7 +1164,7 @@ class Build(database.Base, database.BackendMixin, database.SoftDeleteMixin): return # Create a build group for all tests - group = self.backend.builds.groups.create(owner=self.owner, tested_build=self) + group = self.backend.builds.create_group(owner=self.owner, tested_build=self) # Create a test build only for the latest version of each package for name in builds: diff --git a/src/buildservice/sources.py b/src/buildservice/sources.py index e27c634a..033a385b 100644 --- a/src/buildservice/sources.py +++ b/src/buildservice/sources.py @@ -265,7 +265,7 @@ class Source(database.Base, database.BackendMixin, database.SoftDeleteMixin): ) # Create a new build group - group = self.backend.builds.groups.create() + group = self.backend.builds.create_group() # Insert into the database commit = await self.db.insert(