Exemple #1
0
 def getAllFuel(self):
     dao = FuelDAO()
     fuel_list = dao.getAllFuel()
     result_list = []
     for row in fuel_list:
         result = self.build_Fuel_dict(row)
         result_list.append(result)
     return jsonify(Fuel=result_list)
Exemple #2
0
 def getAllFuel(self):
     dao = FuelDAO()
     fuel_list = dao.getAllFuel()
     return jsonify(Fuel=fuel_list)