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

Simplify logic for 0 indexed race_week #14

Merged
merged 1 commit into from
Jul 16, 2020
Merged

Conversation

XanderRiga
Copy link
Collaborator

race_week is 0 indexed, meaning week 1 needs to be passed as 0, so we
want to user interface to be good and allow users to pass 1 for week 1.
We also need to make sure if they pass -1 that it stays because that is
a valid input but -2 is not.

Also taking this opportunity to update some field names to proper
snake_case.

race_week is 0 indexed, meaning week 1 needs to be passed as 0, so we
want to user interface to be good and allow users to pass 1 for week 1.
We also need to make sure if they pass -1 that it stays because that is
a valid input but -2 is not.

Also taking this opportunity to update some field names to proper
snake_case.
@XanderRiga XanderRiga requested a review from Esterni July 16, 2020 04:32
Copy link
Owner

@Esterni Esterni left a comment

Choose a reason for hiding this comment

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

Damn, that is a much cleaner solution 👍

@Esterni Esterni merged commit 8b12374 into master Jul 16, 2020
@Esterni Esterni deleted the xriga/fix-0-index-logic branch July 16, 2020 04:49
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.

2 participants