Skip to content

Commit

Permalink
Work around issue with MIVS judge import
Browse files Browse the repository at this point in the history
We now no longer email judges when their account is being created, instead telling them how to set a password in the "Welcome as a MIVS judge" email. Although the email is only temporarily disabled, we may actually prefer it this way, since it allows judges to be imported ahead of time/before we're fully ready to open judging.
  • Loading branch information
kitsuta committed Aug 25, 2024
1 parent 4014aa4 commit 12dbfeb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
23 changes: 12 additions & 11 deletions uber/site_sections/mivs_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,18 @@ def confirm_import_judges(self, session, target_server, api_token, judge_ids, **
else:
attendee.admin_account, password = session.create_admin_account(attendee, judge=new_judge)
new_judge.admin_id = attendee.admin_account.id
email_body = render('emails/accounts/new_account.txt', {
'password': password,
'account': attendee.admin_account,
'creator': AdminAccount.admin_name()
}, encoding=None)
send_email.delay(
c.MIVS_EMAIL,
'[email protected]',
'New {} MIVS Judge Account'.format(c.EVENT_NAME),
email_body,
model=attendee.to_dict('id'))
if False:
email_body = render('emails/accounts/new_account.txt', {
'password': password,
'account': attendee.admin_account,
'creator': AdminAccount.admin_name()
}, encoding=None)
send_email.delay(
c.MIVS_EMAIL,
c.ADMIN_EMAIL,
'New {} MIVS Judge Account'.format(c.EVENT_NAME),
email_body,
model=attendee.to_dict('id'))

session.add(new_judge)
session.add(attendee)
Expand Down
10 changes: 7 additions & 3 deletions uber/templates/emails/mivs/judging/judge_welcome.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
Ahoy {{ judge.attendee.first_name }}!
Ahoy {{ judge.attendee.first_name }}! {% set existing_account = judge.admin_account.read_or_write_access_set %}

Congratulations, you have been selected to be a judge for the {{ c.ESCHATON.year }} MAGFest Indie Videogame Showcase! If this is your first time judging for MIVS, welcome aboard! If you're a returning judging veteran, welcome back to another year!

To be a judge for this year, please follow this link to update your status and preferences : <a href="{{ c.URL_BASE }}/mivs_judging" target="_mivs_judge">{{ c.URL_BASE }}/mivs_judging</a>. You will have to log in using this email address and the password that you received in an earlier email.
To be a judge for this year, {% if not existing_account %}you first need to set up your account. Click this link to get a temporary password emailed to you: {{ c.URL_BASE }}/accounts/reset?email={{ judge.attendee.email }} and then follow the instructions in the email. After you log in, {% endif %}please follow this link to update your status and preferences: {{ c.URL_BASE }}/mivs_judging{% if existing_account %} . You will need to log in using your existing account email and password.{% else %}

Judging will begin soon and go until {{ c.MIVS_JUDGING_DEADLINE|datetime_local }}

You may have received extra emails regarding your MIVS judging account. This was an error on our side (Sorry! --The Developer) and these emails can be ignored. You will still need to use the link above to obtain a valid password.{% endif %}


Judging will begin soon and go until {{ c.MIVS_JUDGING_DEADLINE|datetime_local }}.

As a judge, you'll be responsible for judging a dozen games. Expect to spend at least 15 minutes per game to get a good idea for how the games feels.

Expand Down

0 comments on commit 12dbfeb

Please sign in to comment.