def results(): if request.method=='GET': d=util.getAllMyRatings(session['email']) return render_template("results.html", d=d) else: button=request.form['button'] if button == 'Rate Others': return redirect(url_for('rateother')) if button == 'Logout': return redirect(url_for('start'))
import util print "Testing Login Authorization" print util.loginAuthorized('*****@*****.**',8680) print util.getGroup('*****@*****.**') print util.getInfo('*****@*****.**') q=9 print (q > 10 or q <0) ratings = [q, 6, 8] print ratings util.setRate('*****@*****.**','*****@*****.**','Project 1',ratings) print str(util.getAllMyRatings('*****@*****.**')) util.setRate('*****@*****.**','*****@*****.**','Project 1', [8, 5, 9]) util.setRate('*****@*****.**','*****@*****.**', 'Project 1', 5) print str(util.getAllMyRatings('*****@*****.**')) print str(util.getAllMyRatings('*****@*****.**'))