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)
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'])
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'])
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'])
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)
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)