Example #1
0
def results():
	if request.method=="GET":
		user=session['user']
		me=unicodedata.normalize('NFKD',user).encode('ascii','ignore')
		d = utils.get_ratings(me)
		return render_template("results.html", d=d,Username = user) 
	elif 'user' not in session:
		flash('Please log in')
		return redirect(url_for('login'))
	else:
		button=request.form['button']
		if button=='Back':
			return redirect(url_for('home'))
		return redirect(url_for('results'))
Example #2
0
def results():
    d = utils.get_ratings()

    return render_template("results.html",d=d)
Example #3
0
def viewratings(email):
    ratings = utils.get_ratings(email,"Rating Recieved")
    return render_template("viewratings.html", ratings=ratings)