okfn-brasil / gastos_abertos

Código principal do projeto Gastos Abertos.
GNU Affero General Public License v3.0
9 stars 7 forks source link

Codes retornados por RevenueApi são ponteiros para tabela Code #95

Closed andresmrm closed 9 years ago

andresmrm commented 9 years ago

http://localhost:5000/api/v1/receita/list?years=2010 Retorna: [..] {

"code": "<gastosabertos.receita.models.RevenueCode object at 0x7f761c14e350>",
"date": "2010-01-31",
"description": "IMPOSTO S/ A PROPRIEDADE PREDIAL",
"id": 21493,
"monthly_outcome": 96610560.72,
"monthly_predicted": 308876440

} [...]

"code" deveria ser uma string com o código, não um ponteiro.