def getAllSuppliers(self): dao = SuppliersDAO() suppliers_list = dao.getAllSuppliers() result_list = [] for row in suppliers_list: supplier = Supplier().build_dict_from_row(row) result_list.append(supplier) return jsonify(result_list)
def getAllSuppliers(self): dao = SuppliersDAO() suppliers_list = dao.getAllSuppliers() result_list = [] for row in suppliers_list: result = self.build_supplier_dict(row) result_list.append(result) return jsonify(Suppliers=result_list)