from meya import Component


class RemoveUser(Component):
    
    def start(self):
        
        team = self.db.table("teams").filter(team_name=self.db.user.get("team_name"))[0]
        team["team_members"].remove(self.db.user.id)
        self.db.table("teams").update(team["id"], team["team_members"])
        self.db.user.set("team_name", "")
        self.db.user.set("team_password", "")
        
        return self.respond(message=None, action="next")
c8e865c7e6bea5cfc9a6ecd8bbac85f9d362322c
<mask token>

<mask token>


class RemoveUser(Component):
    <mask token>

<mask token>


class RemoveUser(Component):

    def start(self):
        team = self.db.table('teams').filter(team_name=self.db.user.get(
            'team_name'))[0]
        team['team_members'].remove(self.db.user.id)
        self.db.table('teams').update(team['id'], team['team_members'])
        self.db.user.set('team_name', '')
        self.db.user.set('team_password', '')
        return self.respond(message=None, action='next')

from meya import Component


class RemoveUser(Component):

    def start(self):
        team = self.db.table('teams').filter(team_name=self.db.user.get(
            'team_name'))[0]
        team['team_members'].remove(self.db.user.id)
        self.db.table('teams').update(team['id'], team['team_members'])
        self.db.user.set('team_name', '')
        self.db.user.set('team_password', '')
        return self.respond(message=None, action='next')

from meya import Component


class RemoveUser(Component):
    
    def start(self):
        
        team = self.db.table("teams").filter(team_name=self.db.user.get("team_name"))[0]
        team["team_members"].remove(self.db.user.id)
        self.db.table("teams").update(team["id"], team["team_members"])
        self.db.user.set("team_name", "")
        self.db.user.set("team_password", "")
        
        return self.respond(message=None, action="next")