]> git.ipfire.org Git - pbs.git/commitdiff
build joins: Load builds joined
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 15:07:33 +0000 (15:07 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 10 Feb 2025 15:07:33 +0000 (15:07 +0000)
I don't know why this has to be this way, but if not, it does not work.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/builds.py

index 642a71fccde1b939651932041d8c5bd34fda37ec..73b01f056442f713b5fbbf6341b9f7106926dc8d 100644 (file)
@@ -1308,7 +1308,7 @@ class BuildGroup(database.Base, database.SoftDeleteMixin):
        # Builds
 
        builds = sqlalchemy.orm.relationship(
-               "Build", foreign_keys=[Build.group_id], back_populates="group", lazy="selectin",
+               "Build", foreign_keys=[Build.group_id], back_populates="group", lazy="joined",
        )
 
        @staticmethod