Skip to content
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

solution #519

Closed
wants to merge 2 commits into from
Closed

solution #519

wants to merge 2 commits into from

Conversation

uzlss
Copy link

@uzlss uzlss commented Aug 7, 2023

No description provided.

app/cafe.py Outdated
Comment on lines 2 to 3
from app.errors import NotVaccinatedError, OutdatedVaccineError,\
NotWearingMaskError

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use () instead of \

app/cafe.py Outdated
raise NotVaccinatedError("NotVaccinatedError")
elif visitor["vaccine"]["expiration_date"] < datetime.date.today():
raise OutdatedVaccineError("OutdatedVaccineError")
elif not visitor["wearing_a_mask"]:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
elif not visitor["wearing_a_mask"]:
elif not visitor.get("wearing_a_mask", False):

@uzlss uzlss requested a review from Grayder0152 August 8, 2023 10:17
@uzlss uzlss closed this by deleting the head repository Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants