Example #1
0
def index():
  latest_round = q.latest_round(session=flask.g.session)
  latest_perspective = latest_round.perspective.to_dict()
  latest_submissions = latest_round.submissions
  
  info = latest_round.to_dict()
  info['perspective'] = latest_perspective
  info['submissions'] = latest_submissions
  return render_template("index.html", latest_round=info)
Example #2
0
def latest_round():
  round_id = q.latest_round(session=flask.g.session).id
  return redirect("/api/round/%s" % round_id)