gbmodel/model_sqlalchemy.py
def insert_team(self, session_id, t_name):
        """
        Insert a team to database
        Input: self, session id and name of the new team
        """
        id = self.get_max_team_id()
        new_team = teams(id=id, session_id=session_id, name=t_name)
        db.session.add(new_team)
        db.session.commit()
        return id

        Insert a team to database
        Input: self, session id and name of the new team
        
Insert a team to database
Input: self, session id and name of the new team
Insert a team to database Input : self session id and name of the new team
def insert_team(self, session_id, t_name):
        id = self.get_max_team_id()
        new_team = teams(id=id, session_id=session_id, name=t_name)
        db.session.add(new_team)
        db.session.commit()
        return id
def insert_team ( self , session_id , t_name ) : id = self . get_max_team_id ( ) new_team = teams ( id = id , session_id = session_id , name = t_name ) db . session . add ( new_team ) db . session . commit ( ) return id
Insert a team to database
Input: self, session id and name of the new team
Insert a team to database Input : self session id and name of the new team
"""
        Insert a team to database
        Input: self, session id and name of the new team
        """
self
session_id
t_name