meetings/flask_main.py
def startup():
  """
  The startup page that either takes in a meeting id or allows you to create a new meeting.
  """
  app.logger.debug("Entering startup")
  meeting_id = flask.request.form.get("meeting_id")
  app.logger.debug("meeting_id = " + str(meeting_id))
  try:
    db_names = db.collection_names()
    if meeting_id in db_names:
      app.logger.debug("Found database entry")
      flask.g.does_not_exist = 1
      flask.session['meeting_id'] = meeting_id
      return flask.redirect(flask.url_for("choose"))
    elif meeting_id == None:
      flask.g.does_not_exist = 1
      return flask.render_template('startup.html')
    else:
      flask.g.does_not_exist = 2
      return flask.render_template('startup.html')
  except:
    app.logger.debug("Error finding collection or first time through")
    flask.g.does_not_exist = 1
  return flask.render_template('startup.html')

  The startup page that either takes in a meeting id or allows you to create a new meeting.
  
The startup page that either takes in a meeting id or allows you to create a new meeting.
The startup page that either takes in a meeting id or allows you to create a new meeting .
def startup():
  app.logger.debug("Entering startup")
  meeting_id = flask.request.form.get("meeting_id")
  app.logger.debug("meeting_id = " + str(meeting_id))
  try:
    db_names = db.collection_names()
    if meeting_id in db_names:
      app.logger.debug("Found database entry")
      flask.g.does_not_exist = 1
      flask.session['meeting_id'] = meeting_id
      return flask.redirect(flask.url_for("choose"))
    elif meeting_id == None:
      flask.g.does_not_exist = 1
      return flask.render_template('startup.html')
    else:
      flask.g.does_not_exist = 2
      return flask.render_template('startup.html')
  except:
    app.logger.debug("Error finding collection or first time through")
    flask.g.does_not_exist = 1
  return flask.render_template('startup.html')
def startup ( ) : app . logger . debug ( "Entering startup" ) meeting_id = flask . request . form . get ( "meeting_id" ) app . logger . debug ( "meeting_id = " + str ( meeting_id ) ) try : db_names = db . collection_names ( ) if meeting_id in db_names : app . logger . debug ( "Found database entry" ) flask . g . does_not_exist = 1 flask . session [ 'meeting_id' ] = meeting_id return flask . redirect ( flask . url_for ( "choose" ) ) elif meeting_id == None : flask . g . does_not_exist = 1 return flask . render_template ( 'startup.html' ) else : flask . g . does_not_exist = 2 return flask . render_template ( 'startup.html' ) except : app . logger . debug ( "Error finding collection or first time through" ) flask . g . does_not_exist = 1 return flask . render_template ( 'startup.html' )
The startup page that either takes in a meeting id or allows you to create a new meeting.
The startup page that either takes in a meeting id or allows you to create a new meeting .
"""
  The startup page that either takes in a meeting id or allows you to create a new meeting.
  """