Replace Fixed by FLoat in restful marshalling.
This commit is contained in:
parent
cc79b39cbb
commit
278fa7f816
@ -47,13 +47,13 @@ def get_months(account_id):
|
||||
resource_fields = {
|
||||
'id': fields.Integer(default=None),
|
||||
'name': fields.String,
|
||||
'authorized_overdraft': fields.Fixed(decimals=2),
|
||||
'current': fields.Fixed(decimals=2),
|
||||
'pointed': fields.Fixed(decimals=2),
|
||||
'future': fields.Fixed(decimals=2),
|
||||
'expenses': fields.Fixed(decimals=2),
|
||||
'revenues': fields.Fixed(decimals=2),
|
||||
'balance': fields.Fixed(decimals=2),
|
||||
'authorized_overdraft': fields.Float,
|
||||
'current': fields.Float,
|
||||
'pointed': fields.Float,
|
||||
'future': fields.Float,
|
||||
'expenses': fields.Float,
|
||||
'revenues': fields.Float,
|
||||
'balance': fields.Float,
|
||||
}
|
||||
|
||||
|
||||
|
@ -34,12 +34,12 @@ resource_fields = {
|
||||
'id': fields.Integer(default=None),
|
||||
'operation_date': fields.DateTime(dt_format='iso8601'),
|
||||
'label': fields.String,
|
||||
'value': fields.Fixed(decimals=2),
|
||||
'value': fields.Float,
|
||||
'pointed': fields.Boolean,
|
||||
'category': fields.String,
|
||||
'account_id': fields.Integer,
|
||||
'scheduled_operation_id': fields.Integer(default=None),
|
||||
'sold': fields.Fixed(decimals=2),
|
||||
'sold': fields.Float,
|
||||
'canceled': fields.Boolean,
|
||||
}
|
||||
|
||||
|
@ -59,7 +59,7 @@ resource_fields = {
|
||||
'day': fields.Integer,
|
||||
'frequency': fields.Integer,
|
||||
'label': fields.String,
|
||||
'value': fields.Fixed(decimals=2),
|
||||
'value': fields.Float,
|
||||
'category': fields.String,
|
||||
'account_id': fields.Integer,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user