Beispiel #1
0
def insertTeam(_tName, _tPG, _tSG, _tSF, _tPF, _tC, _tOwner, _tCoach):
    x = tm.insert({
        tm.tName: _tName,
        tm.tPG: _tPG,
        tm.tSG: _tSG,
        tm.tSF: _tSF,
        tm.tPF: _tPF,
        tm.tC: _tC,
        tm.tOwner: _tOwner,
        tm.tCoach: _tCoach
    })
    cnfrm = input(
        'Are you sure you want to add {} to the list of teams? [Y]: '.format(
            _tName))
    if (cnfrm == 'y') or (cnfrm == 'Y'):
        y = x.execute()
        os.system('cls')
        viewTeam()
        puts(colored.cyan('\nThere are now a total of {} teams!\n'.format(y)))