def planets(page=1): planets = logic.get_planets(page) if "results" in planets: return render_template('planets.html', planets=planets, name=current_user.username, user_id=current_user.id) else: abort(404)
def next_pages(page=1): logic.verify_session(session) planets = logic.get_planets(page) return render_template('main.html', planets=planets, page=page)
def index(page=1): logic.verify_session(session) planets = logic.get_planets(page) return render_template('index.html', planets=planets, page=page)