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