Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def create_game(body: ProfileGame, response: Response):
final_numbers = ()
if 0 < len(body.numberList) <= 6:
for numbers in body.numberList:
check_number = True if 0 < numbers < 60 else False
check_number = 0 < numbers < 60
Copy link
Author

Choose a reason for hiding this comment

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

Function create_game refactored with the following changes:

if not check_number or numbers in final_numbers:
response.status_code = 200
return {'message': 'List numbers not ok'}
Expand Down