When passing a large number to an int dimension it becomes None when stored on the server. The example PCC object was:
@pcc_set
class BaseSet(object):
@primarykey(str)
def ID(self):
return self._ID
@ID.setter
def ID(self, value):
self._ID = value
@dimension(int)
def Number(self):
return self._Number
@Number.setter
def Number(self, value):
self._Number = value
def __init__(self):
self.ID = None
self.Number = random.randint(1,10000000000)
This is valid on creation, when sending, and on the receiving end of Flask. But another simulation that tracks BaseSet objects will see Number == None.
I tested JSONifying it back and forth, and it doesn't seem to be the issue.
When passing a large number to an int dimension it becomes None when stored on the server. The example PCC object was:
This is valid on creation, when sending, and on the receiving end of Flask. But another simulation that tracks BaseSet objects will see Number == None.
I tested JSONifying it back and forth, and it doesn't seem to be the issue.