-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Qr code scanner code #26
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SIGN_IN_TIMES
needs to be updated with the correct times
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@carmen-chau double check if these intervals work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPDATE: From logistics, I think the only time slot we need to adjust is Lunch Day 2
In __init__.py
, around line 354, replacing the line with this should work:
"time": datetime(2024, 10, 26, 11, 45, 0, tzinfo=TZ_INFO), # Oct 26th @ 11:45 pm
Basically the table should look like this now, lmk if there any differences on your end:
|
||
# Return the information need, and each information will start on a new line | ||
|
||
return_string = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried adding the additional dietary restriction info on my end, you can try doing this:
return_string = ( (user.first_name).capitalize() + " successfully signed in. 👕T-shirt: " + application.tshirt_size + " 🍉 Dietary Restrictions: " + application.dietary_restrictions + " 🍉 Extra dietary notes: " + application.free_response_dietary_restrictions )
application.free_response_dietary_restrictions
is not blank only if the user has either allergies or has written "Other" in application.dietary_restrictions
Another note: one thing I'm slightly concerned about is spacing (100 char max for application.free_response_dietary_restrictions)
Overview
Unit Tests Created
Steps to QA
python manage.py migrate
EVENT_START_DATE = datetime(2024, 10, 26, 8, 0, 0, tzinfo=TZ_INFO)
to earlier so you can test it and adjust one of these sign in event start dates to your current time so its active following insettings/__init__.py
SIGN_IN_TIMES = [
{
"name": "sign_in",
"description": "Hackathon Sign In",
"time": datetime(2023, 11, 4, 10, 0, 0, tzinfo=TZ_INFO), # Nov 4th @ 9am
},
{
"name": "lunch1",
"description": "Lunch Day 1",
"time": datetime(2023, 11, 4, 12, 30, 0, tzinfo=TZ_INFO), # Nov 4th @ 12:30pm
},
{
"name": "dinner1",
"description": "Dinner Day 1",
"time": datetime(2023, 11, 4, 18, 0, 0, tzinfo=TZ_INFO), # Nov 4th @ 6pm
},
{
"name": "breakfast2",
"description": "Breakfast Day 2",
"time": datetime(2023, 11, 5, 8, 0, 0, tzinfo=TZ_INFO), # Nov 5th @ 8am
},
{
"name": "lunch2",
"description": "Lunch Day 2",
"time": datetime(2023, 11, 5, 11, 45, 0, tzinfo=TZ_INFO), # Nov 5th @ 11:45pm
},
]```