From: Michael Tremer Date: Thu, 13 Oct 2022 09:50:10 +0000 (+0000) Subject: builds: Fix rendering comments X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bf5f30954c06b3828110dae51be4a0a7658fc73;p=pbs.git builds: Fix rendering comments Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 7a0c4550..7d730e92 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -224,6 +224,12 @@ class Builds(base.Object): return build + # Comments + + @lazy_property + def comments(self): + return Comments(self.backend) + class Build(base.DataObject): table = "builds" @@ -494,9 +500,10 @@ class Build(base.DataObject): build_comments WHERE deleted IS FALSE - WHERE + AND build_id = %s - ORDER BY created_at + ORDER BY + created_at """, self.id, )