示例#1
0
    def get(self):
        query = Location.select()
        locations = []
        for location in query:
            locations.append(location.to_dict())

        return {'status': 'ok', 'locations': locations}
示例#2
0
    def get(self):
        query = Location.select()
        locations = []
        for location in query:
            locations.append(location.to_dict())

        return {'status': 'ok', 'locations': locations}
示例#3
0
 def get_locations(self):
     return ModelLocation.select().order_by(ModelLocation.location.asc())
示例#4
0
 def get_locations(self):
     return ModelLocation.select().order_by(ModelLocation.location.asc())