From: Michael Tremer Date: Thu, 6 Feb 2025 23:00:15 +0000 (+0000) Subject: builds: Fix sending emails to watchers X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f44b74269fb5a9a5a21a6ba385de51eb618a310a;p=pbs.git builds: Fix sending emails to watchers Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index e14e456e..6a8e86ac 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -797,13 +797,13 @@ class Build(database.Base, database.BackendMixin, database.SoftDeleteMixin): """ watchers = await self.get_watchers() - for user in watchers: + for watcher in watchers: # Skip some people - if exclude and user in exclude: + if exclude and watcher.user in exclude: continue # Send an email to the user - await user.send_email(*args, build=self, **kwargs) + await watcher.user.send_email(*args, build=self, **kwargs) # Repos