Skip to content

Commit

Permalink
Updated the email message body
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhiljain217 committed Sep 16, 2020
1 parent 1efdb6e commit e88cfa6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
9 changes: 4 additions & 5 deletions gavel/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
**Please read this important message carefully before continuing.**
Gavel is a fully automated expo judging system that both tells you where to go
and collects your votes.
Gavel is a fully automated expo judging system.
Gavel uses the model of pairwise comparison. You'll start by
confirming that you have seen a particular project, and then for every submission after that, you'll decide whether it's better or worse than the one you looked **immediately beforehand**.
confirming that you have seen a particular project presentation, and then for every submission after that, you'll decide whether it's better or worse than the one you looked at **immediately beforehand**.
During the judging process, if you encounter a project which you haven't seen please contact the organizer immediately.
Expand All @@ -35,7 +34,7 @@
DEFAULT_EMAIL_BODY = '''
Hello {name},
This email contains your access link to the Judging System for Hack for Impact event.
This email contains your access link to the Judging System for the Hack for Impact event.
DO NOT SHARE this email with others.
Expand All @@ -52,7 +51,7 @@

DEFAULT_CLOSED_MESSAGE = '''
The judging system is currently closed. Reload the page to try again.
'''.strip():
'''.strip()

DEFAULT_DISABLED_MESSAGE = '''
Your account is currently disabled. Reload the page to try again.
Expand Down
9 changes: 3 additions & 6 deletions gavel/controllers/judge.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,9 @@ def tx():
annotator = get_current_annotator()
if annotator.next.id == int(request.form['item_id']):
annotator.ignore.append(annotator.next)
if request.form['action'] == 'Done':
annotator.next.viewed.append(annotator)
annotator.prev = annotator.next
annotator.update_next(choose_next(annotator))
elif request.form['action'] == 'Skip':
annotator.next = None # will be reset in index
annotator.next.viewed.append(annotator)
annotator.prev = annotator.next
annotator.update_next(choose_next(annotator))
db.session.commit()
with_retries(tx)
return redirect(url_for('index'))
Expand Down
2 changes: 1 addition & 1 deletion gavel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def data_from_csv_string(string):

def get_paragraphs(message):
paragraphs = re.split(r'\n\n+', message)
paragraphs = [i.replace('\n', ' ') for i in paragraphs if i]
#paragraphs = [i.replace('\n', ' ') for i in paragraphs if i]
return paragraphs

@celery.task
Expand Down

0 comments on commit e88cfa6

Please sign in to comment.