def getAllPlaces(): app.logger.info('Entering getAllPlaces method') places = StoreModel.get_all_places() ret = [] for place in places: if place is not None: ret.append(place.json()) return json.dumps(ret), 200