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 = {
|
resource_fields = {
|
||||||
'id': fields.Integer(default=None),
|
'id': fields.Integer(default=None),
|
||||||
'name': fields.String,
|
'name': fields.String,
|
||||||
'authorized_overdraft': fields.Fixed(decimals=2),
|
'authorized_overdraft': fields.Float,
|
||||||
'current': fields.Fixed(decimals=2),
|
'current': fields.Float,
|
||||||
'pointed': fields.Fixed(decimals=2),
|
'pointed': fields.Float,
|
||||||
'future': fields.Fixed(decimals=2),
|
'future': fields.Float,
|
||||||
'expenses': fields.Fixed(decimals=2),
|
'expenses': fields.Float,
|
||||||
'revenues': fields.Fixed(decimals=2),
|
'revenues': fields.Float,
|
||||||
'balance': fields.Fixed(decimals=2),
|
'balance': fields.Float,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -34,12 +34,12 @@ resource_fields = {
|
|||||||
'id': fields.Integer(default=None),
|
'id': fields.Integer(default=None),
|
||||||
'operation_date': fields.DateTime(dt_format='iso8601'),
|
'operation_date': fields.DateTime(dt_format='iso8601'),
|
||||||
'label': fields.String,
|
'label': fields.String,
|
||||||
'value': fields.Fixed(decimals=2),
|
'value': fields.Float,
|
||||||
'pointed': fields.Boolean,
|
'pointed': fields.Boolean,
|
||||||
'category': fields.String,
|
'category': fields.String,
|
||||||
'account_id': fields.Integer,
|
'account_id': fields.Integer,
|
||||||
'scheduled_operation_id': fields.Integer(default=None),
|
'scheduled_operation_id': fields.Integer(default=None),
|
||||||
'sold': fields.Fixed(decimals=2),
|
'sold': fields.Float,
|
||||||
'canceled': fields.Boolean,
|
'canceled': fields.Boolean,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ resource_fields = {
|
|||||||
'day': fields.Integer,
|
'day': fields.Integer,
|
||||||
'frequency': fields.Integer,
|
'frequency': fields.Integer,
|
||||||
'label': fields.String,
|
'label': fields.String,
|
||||||
'value': fields.Fixed(decimals=2),
|
'value': fields.Float,
|
||||||
'category': fields.String,
|
'category': fields.String,
|
||||||
'account_id': fields.Integer,
|
'account_id': fields.Integer,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user