def servidor(): if not session.get('logged_in'): return render_template('servidor.html') else: if request.method == 'POST': username = getname(request.form['username']) return render_template('servidor.html', data=getfollowedby(username)) return render_template('servidor.html')
def home(): """ Session control""" if not session.get('logged_in'): return render_template('index.html') else: if request.method == 'POST': username = getname(request.form['username']) return render_template('index.html', data=getfollowedby(username)) return render_template('index.html')