Bugfix with waitlist promotion and update info slides

This commit is contained in:
ACM 2018-01-13 06:22:27 -05:00
parent c279d347a4
commit 1eb15e7ead
3 changed files with 7 additions and 1 deletions

View file

@ -327,6 +327,7 @@ def check_in():
msg = 'Dear ' + mlh_info['first_name'] + ',\n\n' msg = 'Dear ' + mlh_info['first_name'] + ',\n\n'
msg += 'Thanks for checking in!\n' msg += 'Thanks for checking in!\n'
msg += 'We will start shortly, please check your dashboard for updates!\n' msg += 'We will start shortly, please check your dashboard for updates!\n'
msg += 'Here are the slides with all the info: https://goo.gl/mGLDem\n'
send_email(mlh_info['email'], 'HackWPI - Thanks for checking in', msg) send_email(mlh_info['email'], 'HackWPI - Thanks for checking in', msg)
return jsonify( return jsonify(
@ -388,6 +389,7 @@ def drop():
@app.route('/promote_from_waitlist', methods=['GET']) @app.route('/promote_from_waitlist', methods=['GET'])
def promote_from_waitlist(): def promote_from_waitlist():
print("Time for promotion!")
# Promote a hacker from the waitlist... # Promote a hacker from the waitlist...
if request.args.get('mlh_id') is None: if request.args.get('mlh_id') is None:
return jsonify({'status': 'error', 'action': 'promote_from_waitlist', 'more_info': 'Missing required field...'}) return jsonify({'status': 'error', 'action': 'promote_from_waitlist', 'more_info': 'Missing required field...'})

View file

@ -9,6 +9,8 @@ num_to_promote = WAITLIST_LIMIT - num_attendees
if num_to_promote > num_waitlisted: if num_to_promote > num_waitlisted:
num_to_promote = num_waitlisted num_to_promote = num_waitlisted
print("PROMOTING " + str(num_to_promote) + " hackers")
num_to_promote_copy = num_to_promote num_to_promote_copy = num_to_promote
num_promoted = 0 num_promoted = 0
errs = [] errs = []
@ -19,7 +21,7 @@ for id in mlh_ids:
if num_to_promote > 0: if num_to_promote > 0:
print('Attempting to promote: ' + str(id[0])) print('Attempting to promote: ' + str(id[0]))
(key, val) = gen_new_auto_promote_keys() (key, val) = gen_new_auto_promote_keys()
url = 'http://75.136.89.196:5000/promote_from_waitlist' + '?mlh_id=' + str(id[0]) + '&' + key + '=' + val url = 'http://hack.wpi.edu/promote_from_waitlist' + '?mlh_id=' + str(id[0]) + '&' + key + '=' + val
print(url) print(url)
req = requests.get(url) req = requests.get(url)
if req.status_code == 500: if req.status_code == 500:

View file

@ -18,6 +18,8 @@
<br> <br>
You can park at the <a href="https://www.google.com/maps/place/Hackfeld+Lot/@42.274131,-71.8112764,16.88z/data=!4m5!3m4!1s0x89e406f433008cd5:0xba67db4fec56e85c!8m2!3d42.2728874!4d-71.8128909">Hackfeld Lot</a>. Please make sure to print and put this <a href="../static/parking_placecard.pdf">placecard</a>. You can park at the <a href="https://www.google.com/maps/place/Hackfeld+Lot/@42.274131,-71.8112764,16.88z/data=!4m5!3m4!1s0x89e406f433008cd5:0xba67db4fec56e85c!8m2!3d42.2728874!4d-71.8128909">Hackfeld Lot</a>. Please make sure to print and put this <a href="../static/parking_placecard.pdf">placecard</a>.
<br> <br>
Info Slides: https://goo.gl/mGLDem
<br>
Let us know if you have any questions by sending them to hack@wpi.edu Let us know if you have any questions by sending them to hack@wpi.edu
<br> <br>
Forgot to upload your resume while registering? No worries, submit it here: Forgot to upload your resume while registering? No worries, submit it here: