From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E613615802F for ; Fri, 10 Mar 2023 22:36:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DB18CE0798; Fri, 10 Mar 2023 22:36:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A01B7E0798 for ; Fri, 10 Mar 2023 22:36:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A82BF335C7E for ; Fri, 10 Mar 2023 22:36:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 760618C8 for ; Fri, 10 Mar 2023 22:36:06 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1678487526.165def4478ff2558075c7dcabdff85b2be31277b.zorry@gentoo> Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: buildbot_gentoo_ci/db/ X-VCS-Repository: proj/tinderbox-cluster X-VCS-Files: buildbot_gentoo_ci/db/packages.py X-VCS-Directories: buildbot_gentoo_ci/db/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 165def4478ff2558075c7dcabdff85b2be31277b X-VCS-Branch: master Date: Fri, 10 Mar 2023 22:36:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2e46b1c6-e4f1-4b7a-8ea2-75faca484513 X-Archives-Hash: bb98ddd7e2fd861fd0a0aa4516a1f225 commit: 165def4478ff2558075c7dcabdff85b2be31277b Author: Magnus Granberg gentoo org> AuthorDate: Fri Mar 10 22:32:06 2023 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Fri Mar 10 22:32:06 2023 +0000 URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=165def44 Fix 2 bugs in db for email Signed-off-by: Magnus Granberg gentoo.org> buildbot_gentoo_ci/db/packages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/buildbot_gentoo_ci/db/packages.py b/buildbot_gentoo_ci/db/packages.py index 79ae685..1f68637 100644 --- a/buildbot_gentoo_ci/db/packages.py +++ b/buildbot_gentoo_ci/db/packages.py @@ -210,7 +210,8 @@ class PackagesConnectorComponent(base.DBConnectorComponent): tbl = self.db.model.packages_emails conn.execute(tbl.delete( whereclause=((tbl.c.package_uuid == package_uuid)))) - return self.db.pool.do(thd) + res = yield self.db.pool.do(thd) + return res def _row2dict_email(self, conn, row): return dict( @@ -222,6 +223,6 @@ class PackagesConnectorComponent(base.DBConnectorComponent): id=row.id, email_id=row.email_id, package_uuid=row.package_uuid, - type=row.type, + mail_type=row.mail_type, proxied=row.proxied, )