示例#1
0
def add_team():
  """ Add a new team
  """
  team_name = request.form['team_name']

  APP.logger.info("There was a post!")
  APP.logger.info(request.form)
  if request.method == "POST":
    mongo_utilities.create_team(team_name)
  else:
    return render_template('teams.html', teams = mongo_utilities.get_teams())