示例#1
0
 def get_vehicles(self):
     query = Vehicle.all()
     vehicles = query.run()
     return vehicles
示例#2
0
    def get_vehicle_by_unit(self, unit):
        q = Vehicle.all()

        return q.filter('unit =', unit)