Replace Fixed by FLoat in restful marshalling.

This commit is contained in:
Alexis Lahouze 2015-06-15 13:05:09 +02:00
parent cc79b39cbb
commit 278fa7f816
3 changed files with 10 additions and 10 deletions

View File

@ -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,
}

View File

@ -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,
}

View File

@ -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,
}