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

Prediction: Internal server error (500) when updating without numeric score input #314

Open
chill0r opened this issue Jan 23, 2021 · 1 comment

Comments

@chill0r
Copy link

chill0r commented Jan 23, 2021

Description:
When updating a match prediction progress with no number input (non numeric or empty) in either of the participant fields a 500 Internal Server Error will be returned

What should happen
Invalid fields should be interpreted as "0"

What is happening
500 Internal server error

How to reproduce

  1. Generate (any) prediction
  2. Insert a non numeric value (or empty) in the Update match progress scores
  3. Press "Update match progress"
@chill0r
Copy link
Author

chill0r commented Jan 23, 2021

Possibly a check for a numeric value in

def modify(self, num_a, num_b):

could fix this (not tested)

@chill0r chill0r mentioned this issue Feb 6, 2021
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

No branches or pull requests

1 participant