Skip to content

Commit

Permalink
Update emails.
Browse files Browse the repository at this point in the history
  • Loading branch information
kmccurley committed Jan 12, 2025
1 parent 5b99955 commit 36b1f50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion webapp/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def cleanup_task():
with scheduler.app.app_context():
if scheduler.app.config['DEBUG']:
scheduler.app.logger.warning('skipping cleanup of existing papers')
scheduler.app.logger.info('skipping cleanup of existing papers')
return
if scheduler.app.config['DEMO_INSTANCE']:
scheduler.app.logger.warning('cleanup should not be configured')
Expand Down
12 changes: 9 additions & 3 deletions webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,10 +343,16 @@ def submit_version():
auth=create_hmac([paperid, version]),
_external=True)
if send_mail:
msg = Message('Paper {} was submitted'.format(paperid),
msg = Message('Paper {} was uploaded'.format(paperid),
sender=app.config['EDITOR_EMAILS'],
recipients=['[email protected]']) # for testing
msg.body = 'This is just a test message for now.\n\nYour paper will be viewable at {}'.format(paper_url)
recipients=[compilation.email])
body = 'Thank you for uploading your paper. Until you send your paper\nfor copy editing, you will be able to view it at\n\n {}'.format(paper_url)
msg.body = body
mail.send(msg)
msg = Message('FYI: Paper {} was uploaded'.format(paperid),
sender=app.config['EDITOR_EMAILS'],
recipients=['[email protected]'])
msg.body = body
mail.send(msg)
status_url = paper_url.replace('/view/', '/tasks/')
data = {'title': 'Compiling your LaTeX',
Expand Down

0 comments on commit 36b1f50

Please sign in to comment.