Exemple #1
0
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')
Exemple #2
0
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')