Esempio n. 1
0
def list():
    start_after = request.args.get('start_after', None)
    venusdocs, last_title = firestore.next_page(start_after=start_after)

    return render_template('list.html',
                           venusdocs=venusdocs,
                           last_title=last_title)
Esempio n. 2
0
def delete_all_images(firestore):
    while True:
        images, _ = firestore.next_page(limit=50)
        if not images:
            break
        for image in images:
            firestore.delete(image['id'])
Esempio n. 3
0
def delete_all_books(firestore):
    while True:
        books, _ = firestore.next_page(limit=50)
        if not books:
            break
        for book in books:
            firestore.delete(book['id'])
Esempio n. 4
0
def delete_all_moviess(firestore):
    while True:
        moviess, _ = firestore.next_page(limit=50)
        if not moviess:
            break
        for movies in moviess:
            firestore.delete(movies['id'])
Esempio n. 5
0
def list_items():
    start_after = request.args.get('start_after', None)
    items, last_item_id = firestore.next_page(start_after=start_after)
    return render_template("item_list.html", items=items, last_item_id=last_item_id)
Esempio n. 6
0
def display():
    start_after = request.args.get('start_after', None)
    people, last_firstname = firestore.next_page(start_after=start_after)
    return render_template('list.html', people=people, last_firstname=last_firstname)