Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Conversation

@marjev
Copy link
Collaborator

@marjev marjev commented May 10, 2018

Let's fix NDPD-1222. In case problem weight is set to a decimal value, SGA breaks during scoring process.

This allows score points (earned and max) to have decimal values.
Please review.

@marjev marjev requested review from kotky and vkaracic May 10, 2018 12:22
decimal_places=2,
default=Decimal('0.0'),
max_digits=6,
validators=[MinValueValidator(Decimal('0.0'))]

Choose a reason for hiding this comment

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

Do users see an error message when one of these fails, or a 500 error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess consumers handle those errors, SGA does on the front end.

Choose a reason for hiding this comment

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

Oh, didn't realize this doesn't have views/controllers.

@marjev marjev merged commit 0e9e739 into nd-gingko-master May 10, 2018
@marjev marjev deleted the mjevtic/NDPD-1222 branch May 10, 2018 13:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants