diff options
-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, ) |