def index_cities(): cities = nomadlist.list_cities() storage.upsert_cities(cities) return cities
def index_guides(cities): city_docs = map(build_guide, cities) storage.upsert_cities(city_docs) return True