def index(): if current_user.is_authenticated: return redirect(url_for('account')) contracts = Contract.get_all() return render_template("index.html", contracts=contracts)
def contratosdisponibles(): contracts = Contract.get_all() id = current_user.id return render_template('contratosdisponibles.html', contracts=contracts, id=id)