diff options
author | Magnus Granberg <zorry@gentoo.org> | 2023-03-10 23:32:06 +0100 |
---|---|---|
committer | Magnus Granberg <zorry@gentoo.org> | 2023-03-10 23:32:06 +0100 |
commit | 165def4478ff2558075c7dcabdff85b2be31277b (patch) | |
tree | e696719b28c2b8524483cbbadcd703f21fa2a5a8 /buildbot_gentoo_ci | |
parent | Add package metadata support (email) (diff) | |
download | tinderbox-cluster-165def4478ff2558075c7dcabdff85b2be31277b.tar.gz tinderbox-cluster-165def4478ff2558075c7dcabdff85b2be31277b.tar.bz2 tinderbox-cluster-165def4478ff2558075c7dcabdff85b2be31277b.zip |
Fix 2 bugs in db for email
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'buildbot_gentoo_ci')
-rw-r--r-- | buildbot_gentoo_ci/db/packages.py | 5 |
1 files 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, ) |