Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 513, in __call__
handler.post(groups)
File "/base/data/home/apps/moustachewars/2.345943956888778510/main.py", line 126, in post
winner.elo_score = Rwinner + Kelo(1-Ewinner)
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 542, in __set__
value = self.validate(value)
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 2804, in validate
% (self.name, type(value).__name__))
BadValueError: Property elo_score must be an int or long, not a float
Comments
Error:
Traceback (most recent call last): File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 513, in __call__ handler.post(groups) File "/base/data/home/apps/moustachewars/2.345943956888778510/main.py", line 126, in post winner.elo_score = Rwinner + Kelo(1-Ewinner) File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 542, in __set__ value = self.validate(value) File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py", line 2804, in validate % (self.name, type(value).__name__)) BadValueError: Property elo_score must be an int or long, not a float
Ouch, thanks for that. Fixed.