diff --git a/mo/web/user.py b/mo/web/user.py index 0ff79c8f55967a055ff8a378b009d34902861534..46663998fd6d30ff4c066b8d6dfe87c43ee1c86e 100644 --- a/mo/web/user.py +++ b/mo/web/user.py @@ -236,7 +236,7 @@ def join_notify(c: db.Contest) -> None: .filter_by(place_id=place.place_id) .options(joinedload(db.UserRole.user)) .all()) - notify = [ur.user for ur in uroles if ur.applies_to(at=place, year=r.year, cat=r.category, seq=r.seq)] + notify = {ur.user for ur in uroles if ur.applies_to(at=place, year=r.year, cat=r.category, seq=r.seq) and ur.user.email_notify} if notify: for org in notify: logger.info(f'Join: Notifikuji orga <{org.email}> pro mÃsto {place.get_code()}')