Ejemplo n.º 1
0
def index_cities():
    cities = nomadlist.list_cities()
    storage.upsert_cities(cities)
    return cities
Ejemplo n.º 2
0
def index_guides(cities):
    city_docs = map(build_guide, cities)
    storage.upsert_cities(city_docs)
    return True