-
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
Improve populate command by handling new fields in models #124
base: dev
Are you sure you want to change the base?
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.
Only small concern, and I've got to run it once for tests. Otherwise, so far so good.
maxTeam=randint(1, 10), | ||
logo=self.generate_logo(), | ||
is_announced=randint(0, 100) < 50, | ||
player_price_online=randint(0, 50), |
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.
prices are not int
, they are Decimal
. Are you sure the conversion is done when this is assigned?
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.
It was in my testing but it could be better for testing to have Decimal, i will change it soon 👍
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 comment about decimals
- you should probably fix the generation of random stuff in the tournament name, apparently it's breaking length constraints at the moment?
|
Small changes but still useful to test with empty DB.