fixe json output
authorhefee
Sat, 27 Jul 2019 13:36:51 +0200
changeset 309 7fa1d4713a4f
parent 308 a891fdd0c1a9
child 310 352850d4fb4b
fixe json output
iro/controller/viewinterface.py
--- a/iro/controller/viewinterface.py	Sat Jul 27 13:36:18 2019 +0200
+++ b/iro/controller/viewinterface.py	Sat Jul 27 13:36:51 2019 +0200
@@ -192,7 +192,7 @@
             n=route.offer_name
             ret[n]={'price':0, 'anz':0, 'info':{}}
             for bill in route.bill:
-                ret[n]['info'][bill.info]={'price':float(bill.price),'anz':bill.anz}
+                ret[n][bill.info]={'price':float(bill.price),'anz':bill.anz}
                 ret[n]['price'] += bill.price
                 ret[n]['anz'] += bill.anz
             ret['total']['price'] += ret[n]['price']