From 02574dc9c6f309dc8363ee4056209ac3a696ee1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Pracha=C5=99?= <jan.prachar@gmail.com> Date: Thu, 15 Apr 2021 13:56:39 +0200 Subject: [PATCH] =?UTF-8?q?Lep=C5=A1=C3=AD=20p=C5=99edm=C4=9Bt=20pro=20ema?= =?UTF-8?q?il=20=C3=BA=C4=8Dastn=C3=ADk=C5=AFm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/org_contest.py | 3 ++- mo/web/org_round.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mo/web/org_contest.py b/mo/web/org_contest.py index 9ae93c19..dca704ce 100644 --- a/mo/web/org_contest.py +++ b/mo/web/org_contest.py @@ -466,7 +466,8 @@ def org_contest_list(id: int, site_id: Optional[int] = None): emails = None mailto_link = None if request.endpoint == 'org_contest_list_emails': - (emails, mailto_link) = get_contestant_emails(query) + (emails, mailto_link) = get_contestant_emails(query, + mailto_subject=f'{contest.round.name} {contest.round.category} {contest.place.name_locative()}') count = len(emails) else: # (count, query) = filter.apply_limits(query, pagesize=50) diff --git a/mo/web/org_round.py b/mo/web/org_round.py index 6454aaa5..8f5f7c09 100644 --- a/mo/web/org_round.py +++ b/mo/web/org_round.py @@ -378,7 +378,8 @@ def org_round_list(id: int): emails = None mailto_link = None if request.endpoint == 'org_round_list_emails': - (emails, mailto_link) = get_contestant_emails(query) + (emails, mailto_link) = get_contestant_emails(query, + mailto_subject=f'{round.name} kategorie {round.category}') count = len(emails) else: (count, query) = filter.apply_limits(query, pagesize=50) -- GitLab